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!

Pass-Through and Access Query

Status
Not open for further replies.

thegameoflife

Programmer
Dec 5, 2001
206
0
0
US
Ok in the code below SERVICES is SQL Table and QR_Serv_Not_00 is an Access Query. What do I need to change to make this work?

Code:
SELECT SERVICES.SERVICE_NUM, SERVICES.CLAIM_NUM, 
FROM SERVICES INNER JOIN QR_Serv_Not_00 ON (SERVICES.CLAIM_NUM = QR_Serv_Not_00.CLAIM_NUM) AND (SERVICES.SERVICE_NUM = QR_Serv_Not_00.SERVICE_NUM);
 
Use A Pass-Through Query to hit your SQL tables. Then include that query as a seperate "table" in a regular select query.

Something like...

Pass-Through Query Named Pezs:

SELECT SERVICES.SERVICE_NUM, SERVICES.CLAIM_NUM,
FROM SERVICES

Access Query:

SELECT * FROM Pezs INNER JOIN QR_Serv_Not_00 ON (Pezs.CLAIM_NUM = QR_Serv_Not_00.CLAIM_NUM) AND (Pezs.SERVICE_NUM = QR_Serv_Not_00.SERVICE_NUM);
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top