Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Rhinorhino on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

TransferDatabase acExport

Status
Not open for further replies.

evalesthy

Programmer
Joined
Oct 27, 2000
Messages
513
Location
US
I am using the Do.cmd TransferDatabase command in a split Access 97 database to copy a single table to another database. I trigger the command from a button on a form. What is happening is that the front-end link is being exported not the actual back data so if I email the exported item or copy it to a zip drive I cannot actually open it as what I am trying to open is a broken link.
My current command is:
Docmd TransferDatabase, acExport, "Microsoft Access", "C:\My Docs\MyDatabaseFolder\MyDataName.mdb", acTable, "tbl ErrorLog", "tbl EventLog"
where tbl ErrorLog is the table I am trying to copy over and rename as tbl EventLog.
How do I make the reference to 'tbl ErrorLog' point to the backend table, not the fornt end link? If someone has an alternative method I would be glad to switch approaches - I am not married to this one. Thanks in advance.
 
Just a suggestion, if you want to email the file you can create a button and use the SendObjectCommand

DoCmd.SendObject acSendTable, "TblName", acFormatXLS, "theman@somewhere.com"

If you leave the email name blank, Access will prompt you to put in the email name.

ljprodev@yahoo.com
Professional Development
MS Access Applications
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top