Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Defined Size
Message
De
19/07/2002 11:58:20
 
Information générale
Forum:
Visual Basic
Catégorie:
Bases de données DAO/RDO/ODBC/ADO
Titre:
Divers
Thread ID:
00680391
Message ID:
00680492
Vues:
20
>I have been learning the ADOX model to manipulate an exisiting Microsoft Access database. My question concerns Field Size on a text field. Any way to change it programatically?

Try the following:
oCn.Open "Provider=Microsoft.Jet.OLEDB.4.0;Data Source=C:\myfolder\db1.mdb;"
oCn.Execute "ALTER TABLE [myTable] ALTER COLUMN [Column3] text(20);", ,adExecuteNoRecords
It's not ADOX but it should work. HTH
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform