karluk,
Don't know if you're still reading this thread, but all of the SQL that you threw at me works. I just got the thing up and running today. Access just needed some #'s around the date I was giving it so see it as a date instead of some long division. Thanks for all of your help!
--B
Rick--
I was thinking along your lines too. The database I described on the ANSI thread is actually just a simple model of a database that I'm working on. The problem is I can't get SQL work on this model with 4 records in it! I don't know if Access let's you do the >< operations on a...
Is there anyone out there who can address the issue in the following thread on the ANSI SQL board:
http://www.tek-tips.com/gviewthread.cfm/lev2/4/lev3/32/pid/220/qid/67598
Is there an issue with Access 97 dates that I am not addressing with my SQL statement? Any other ideas?
Thanks!
--Brian
karluk,
I agree that both solutions look good, I can't for the life of me find my mistake. I'll paste my data and the query that is returning no results.
First the data:
Patients
PatientID LName
5 Joe
6 Steve
Visits
VisitID PatientID VisitDate
7 5 2/10/1998
8 5...
To be more specific I think I need a statement that performs three steps:
1. Select the PatientNumber and the most recent VisitDate for that PatientNumber from Visits.
2. Select PatientNumber from step 1's results where the most recent VisitDate before 12/31/98
3. Get the PatientName from...
Thanks for both responses, but they both yielded the same result which was to not return any rows. I feel like both of these statements were very close, but one condition is missing. Any other thoughts?
I have two tables that simplified would look like this
tblPatients
PatientNumber
PatientName
tblVisits
VisitNumber
PatientNumber
VisitDate
I need to do a select that will take the PatientNumber and Name from Patients if they haven't visited since 12/31/98. For...
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.