Search not resulting in expected outcome

J

John Spencer

DId you try changing the = to >= or just >?

SELECT I.CountryCode, I.CustID, I.Specialist, I.ReviewDate, I.Activity,
I.DealerCode, I.AuditNo
FROM Itinerary AS I
WHERE I.ReviewDate > (
SELECT Max(ReviewDate) AS LastDate
FROM Itinerary as X
WHERE X.Activity = "Audit" and X.CustID = 3
AND X.CountryCode = I.CountryCode
AND X.DealerCode = I.DealerCode)

When something does not work quite the way you wish it to try experimenting a
bit. You'll learn more, are more likely to retain the solution, and are more
likely to be able to apply the concept in the future.

John Spencer
Access MVP 2002-2005, 2007-2008
The Hilltop Institute
University of Maryland Baltimore County
 
H

hughess7

Sorry I should have thought to try that! Too much on my plate at the mo as
I'm trying to develop (whilst learn!) a web app in .net too and I am the only
IT person in the company I work for - needless to say I'm struggling ;-).

I do normally experiment etc, I had already changed Doug's etxra ON's to
AND's but I missed the alias bit.

Thanks again,
Sue
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Similar Threads

Design advice 1
Selecting data 2
Add new records using vba 6
Creating data via code 12
Validation rule 3
Data validation 6
subform ref in query not working 2
normalization issue & logging in 3

Top