Link to home
Start Free TrialLog in
Avatar of CMDAI
CMDAI

asked on

ACCESS to MYSQL Pass-Through Query

How can i create a dynamic pass-through query in MYSQL?

do i need to adjust my connection string?
ODBC;UID=root;PWD=test;DSN=localhost
Avatar of TextReport
TextReport
Flag of United Kingdom of Great Britain and Northern Ireland image

I assume you are in Access creating a Pass Through query in there. Yes you can. The easiest way to get your ODBC connect string is to attach a table and then look at the Description property in the Access table design, the ODBC connect string is everything excep the TableNam at the end.

As far as the Dynamic bit then you may need to expand. You can not include parameters as everything in the Pass Through Query has to be Server related but you could modify the SQL in code.

Cheers, Andrew
Avatar of CMDAI
CMDAI

ASKER

For the first part i got it,
but im not so sure what u mean "the Pass Through Query has to be Server related"

I copied this from the linked "inventory table"
ODBC;DATABASE=jnbkcrop;DESCRIPTION=JNBKCorpLocalHost;DSN=JNBKCorpLocalHost;OPTION=0;PORT=0;SERVER=localhost;;TABLE=inventory

SQL:
SELECT ID, Title FROM jnbkcrop.inventory;

I get "Recordset is not updatable"
ASKER CERTIFIED SOLUTION
Avatar of TextReport
TextReport
Flag of United Kingdom of Great Britain and Northern Ireland image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Avatar of CMDAI

ASKER

ahh, ok.
I was very much off on the meaning of passtrough q.
Thank's