Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Access create table
Message
De
30/10/2008 13:03:56
 
 
À
Tous
Information générale
Forum:
Visual FoxPro
Catégorie:
COM/DCOM et OLE Automation
Titre:
Access create table
Versions des environnements
Visual FoxPro:
VFP 9 SP2
OS:
Vista
Network:
Windows 2008 Server
Database:
MS SQL Server
Divers
Thread ID:
01358402
Message ID:
01358402
Vues:
72
Can somebody help me with the proper syntax for the field commands in this sequence? (and the values for dbText and dbMemo)
Thanks
oAccess = createobject("Access.application")
oAccess.visible= .t.

newMDB = oAccess.NewCurrentDatabase("C:\accesstest")
tdfnew = oAccess.CurrentDb.CreateTableDef('testtable')
	
with tdfnew
.fields.append .CreateField("FirstName", "dbText")
.fields.append .CreateField("LastName", "dbText")
.fields.append .CreateField("Phone", "dbText")
.fields.append .CreateField("Notes", "dbMemo")
newMDB.TableDefs.append tdfnew
endwith
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform