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 SkipVought on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Link a table from VB

Status
Not open for further replies.

gr8whitewaldron

Technical User
Aug 6, 2003
25
0
0
US
Hello, I am attempting to utilize the TransferSpreadsheet function in VB to link a table to my current database. However, there is no SpreadSheetType reference for other access databases. Is this the wrong command to use or is there a reference for an access table?
 
Have you tried or thought about creating an ODBC connection to the table?

Right click in Table Design View, Choose Link Tables..., etc.

You can maintain a continuous connection to the table this way without having to run a VB proc.

Hope this helps you.

 
The thing is, the table will be filled with information and then sent back to the home computer. So it doesn't quite exist yet to make a connection to it. ODBC is a little beyond me at the moment. :) DoCmd.TransferDatabase I believe is what I am looking for.

Thanks anyway!
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top