Re: Accessing remote data using "IN" clause in query with INNER JOINs.
- From: "Douglas J. Steele" <NOSPAM_djsteele@xxxxxxxxxxxxxxxxx>
- Date: Wed, 20 Dec 2006 07:36:38 -0500
I don't believe you can use multiple IN clauses.
Create Linked Tables that point to your external tables, and use the linked
tables in your queries.
--
Doug Steele, Microsoft Access MVP
http://I.Am/DougSteele
(no private e-mails, please)
"Leigh Hall" <leigh.hall@xxxxxxxxxxxxxxxxxxxx> wrote in message
news:6D77F6D5-22C3-4A77-9D97-B6A6A9EB29FE@xxxxxxxxxxxxxxxx
Hi,
I am trying to access back end data from a front end database. In the
backend, I can construct my query without a problem, but when I move it
into
the front end, I obviously need to add some "IN 'c:\...\...\db.mdb"
statements. I am having trouble doing this because the query has a couple
of
INNER JOINs.
Here is my original SQL ( that works in the BE):
SELECT tblTeam.UserID, tblMain.*
FROM tblTeam INNER JOIN (tblCoreData INNER JOIN tblMain ON
tblCoreData.UserName = tblMain.UserID) ON tblTeam.Team = tblCoreData.Team
WHERE (((tblTeam.UserID)="User.Name"));
Here is my modified SQL (that I cannot get to work in my FE):
SELECT tblTeam.UserID, tblMain.* FROM tblTeam IN
'C:\...\...\...\...\Database_BE.mdb' INNER JOIN (tblCoreData IN
'C:\...\...\...\...\Database_BE.mdb' INNER JOIN tblMain IN
'C:\...\...\...\...\Database_BE.mdb' ON tblCoreData.UserName =
tblMain.UserID) ON tblTeam.Team = tblCoreData.Team WHERE
(((tblTeam.UserID)="User.Name"));
I get an error stating that there is a syntax error in my FROM clause.
Any help would be appreciated. I constructed the first query in a normal
Access query, but I will be utilising it in VBA.
Thanks,
Leigh H
--
remove the capital letters from my email address to contact me.
.
- Follow-Ups:
- Re: Accessing remote data using "IN" clause in query with INNER JOINs.
- From: David W. Fenton
- Re: Accessing remote data using "IN" clause in query with INNER JO
- From: John Nurick
- Re: Accessing remote data using "IN" clause in query with INNER JO
- From: Leigh Hall
- Re: Accessing remote data using "IN" clause in query with INNER JOINs.
- Prev by Date: Re: Run action query in back-end from front-end database
- Next by Date: Re: Run action query in back-end from front-end database
- Previous by thread: Re: Need to turn off key violation warning.
- Next by thread: Re: Accessing remote data using "IN" clause in query with INNER JO
- Index(es):
Relevant Pages
|