Help needed - Importing a table from on DB to another

F

FatMan

Hi all:
Can anyone tell me what the code is to import a table form one database to
another database? I would also like to append the system time (time only and
not the date) to the orginal name in the second database. For example:
OrginalName becomse OriginalName0800 if the table was imported at 8:00 a.m.

Any help would be greatly appreciated.

Thanks,
FatMan
 
D

Dirk Goldgar

FatMan said:
Hi all:
Can anyone tell me what the code is to import a table form one database to
another database? I would also like to append the system time (time only
and
not the date) to the orginal name in the second database. For example:
OrginalName becomse OriginalName0800 if the table was imported at 8:00
a.m.


DoCmd.TransferDatabase _
acImport, _
"Microsoft Access", _
"C:\Path\To\SourceDB.mdb", _
acTable, _
"OriginalName", _
"OriginalName" & Format(Time, "hhnn")
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top