MrMajik
IS-IT--Management
- Apr 2, 2002
- 267
I am trying to copy a mdb table (or recordset) in VB6. I want to create a new table and keep the original table structure without the records.
When I try this:
DoCmd.CopyObject, "MyNewTable", acTable, "MyTable"
it generates an error.
Also, I tried adding the App.Path & "\etc..." so the program knows which database to open but it does not work.
Any ideas?
Thank you,
MrMajik
When I try this:
DoCmd.CopyObject, "MyNewTable", acTable, "MyTable"
it generates an error.
Also, I tried adding the App.Path & "\etc..." so the program knows which database to open but it does not work.
Any ideas?
Thank you,
MrMajik