V
Vic
I have a fairly large database (65 meg) that I'm converting to an accDB in
Access 2007. One of the routines in the app is to selectively merge tables
from 2 different databases into a new database. I'm using a routine from
Microsoft Help & Support titled "How To Copy a DAO TableDef Including
User-Defined Properties" which doesn't work (tables don't get copied) in the
accDB database while it does work in Access 2007 as an MDB. Here is a link
to the routine: http://support.microsoft.com/kb/217011
The first problem is that it gets the error "Method or Data Member Not
Found" on the statement "Set p = f.CreateProperty(SP.Name, SP.Type)" for
CreateProperty in the "Copy Access/User Field Properties" routine. Since I
don't have any user-defined properties I've tried commenting out this
for-next loop but the tables still don't get created. When it tries to copy
fields it gets a "Type Missmatch" error on the statement Set SF =
SourceTableDef.Fields(f1) in the Copy Fields routine.
Is there a replacement routine for copying tables documented somewhere for
Access 2007 (accDB) databases.
Thanks for any help received!
Vic
Access 2007. One of the routines in the app is to selectively merge tables
from 2 different databases into a new database. I'm using a routine from
Microsoft Help & Support titled "How To Copy a DAO TableDef Including
User-Defined Properties" which doesn't work (tables don't get copied) in the
accDB database while it does work in Access 2007 as an MDB. Here is a link
to the routine: http://support.microsoft.com/kb/217011
The first problem is that it gets the error "Method or Data Member Not
Found" on the statement "Set p = f.CreateProperty(SP.Name, SP.Type)" for
CreateProperty in the "Copy Access/User Field Properties" routine. Since I
don't have any user-defined properties I've tried commenting out this
for-next loop but the tables still don't get created. When it tries to copy
fields it gets a "Type Missmatch" error on the statement Set SF =
SourceTableDef.Fields(f1) in the Copy Fields routine.
Is there a replacement routine for copying tables documented somewhere for
Access 2007 (accDB) databases.
Thanks for any help received!
Vic