Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Dynamically creating Access 2K table with VFP 6.0
Message
From
14/02/2001 15:50:48
 
 
To
14/02/2001 15:15:36
General information
Forum:
Visual FoxPro
Category:
Databases,Tables, Views, Indexing and SQL syntax
Miscellaneous
Thread ID:
00475987
Message ID:
00476011
Views:
31
You can do it by creating a TableDef object...but that's gonna be a bitch because this is DAO stuff and you won't be able to set all the properties of the new table as they are in the template.

You could also try:

oAcc=create("access.application")
oAcc.DoCmd.CopyObject("C:\test\mydatabase.mdb","3-2001-info",0,"general_info")

This might work....but I keep getting an error about not being able to perform the action at this time but that may only be because my settings in Access 2000 here are non-standard.


>Hi. To make a long story short, I need to create Access 2000 tables and insert them into a .mdb database with VFP 6.0. Template tables reside in this database that I can utilize. For example, when the first record is entered for March, 2001 it will create the table [3-2001-info] from the template table [general_info]. I have disovered how to insert data into an Access database, but I can't find how to create one. If anyone has any ideas, please let me know.
>
>Thanks in advance,
>Steve
------------------------------------------------
John Koziol, ex-MVP, ex-MS, ex-FoxTeam. Just call me "X"
"When the going gets weird, the weird turn pro" - Hunter Thompson (Gonzo) RIP 2/19/05
Previous
Reply
Map
View

Click here to load this message in the networking platform