Hello,
I am using 2007. I am currently using the following to access data from a separate database for a variety of functions.
Code:
Dim DB As DAO.Database
Set DB = OpenDatabase(GET_DBLINK("dbnamehere"))
Then I can use something like
Code:
Set rs = DB.OpenRecordset("select * from whatever")
to user to display data in on a form.
However, I am running into trouble when trying to open a query for viewing. I have a simple select statement to run against a table from by DB database. I want to mimic DoCmd.openquery "QUERY" but I don't know how to tell access to use the DB database when doing so.