turkishgold
Registered User.
- Local time
- Yesterday, 18:09
- Joined
- Aug 25, 2009
- Messages
- 17
Hi,
I'm having some difficulty with a multiple nested query in access. Here's what I have so far:
No matter what I try I get an error kicked back. I'm using Access 2003.
Any help would be appreciated.
thanks much
Tom
I'm having some difficulty with a multiple nested query in access. Here's what I have so far:
Code:
SELECT Sample.site_id, Sample.dt_tm, Sample.collecting_agency, Sample.sample_id
FROM Sample
WHERE ((Sample.site_id) In (SELECT [Sample.site_id] FROM [Sample] INNER JOIN Sites ON Sample.site_id = Sites.site_id WHERE ((Sites.site_comments = "in")
GROUP BY [site_id],[dt_tm] HAVING Count(*)>1 And [dt_tm] = [Sample].[dt_tm]-))
ORDER BY Sample.site_id, Sample.dt_tm;
No matter what I try I get an error kicked back. I'm using Access 2003.
Any help would be appreciated.
thanks much
Tom