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

Getting result from EXTERNAL MS Access DB

Status
Not open for further replies.

Stoffel24

Technical User
Apr 4, 2002
121
ZA
Hi all

I have a requirement to query a table in an external Access database. I have created a connection to this external database as shown below (Data_source is the external database path):

Set dbDoc = DBEngine.Workspaces(0).OpenDatabase(Data_Source)

Now I need to query a table called Field_master in Data_source. I have 2 questions:

1) Should I do this with a sql command or use an openrecordset or what?

2) Once I have queried this database, if I do it with a sql command and I return the 2 fields I need (call them field1 and field2) how do I extract the appropriate one?

Thanks in advance...
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top