XcuseBlondeness
Registered User.
- Local time
- Today, 13:31
- Joined
- Aug 26, 2004
- Messages
- 11
Ok, if this question was answered previously, I can't find it. After many days of beating my head against a wall it seems (and realizing that I am TRULY a blonde..
), I finally was able to get my query to do what I wanted - with one exception....it stops after it matches the first record. I know there is a simple input I need to make it "Loop" until no more records are found, but I can't find it.
Here's my code (I didn't write this in SQL myself, this is just copied from SQL view of Query Design):
SELECT July04EKG.RecordNum, July04EKG.Last_name, July04EKG.First_name, July04EKG.MI, July04EKG.Address1, July04EKG.Address2, July04EKG.City, July04EKG.State, July04EKG.Zip, July04EKG.SSN, July04EKG.Phone, July04EKG.Sex, July04EKG.DOB, July04EKG.Primary_Ins, July04EKG.Secondary_Ins, July04EKG.Primary_Group, July04EKG.Secondary_Group, July04EKG.Primary_ID, July04EKG.Secondary_ID, July04EKG.DOS, July04EKG.Referring_MD, July04EKG.DX, July04EKG.Location, July04EKG.Precert, (SELECT [Reading_Dr] FROM [EKGdates] WHERE [Ekgdates].[DOS]=[July04EKG].[DOS]) AS Reading_Dr
FROM July04EKG
WHERE ((((SELECT [Reading_Dr] FROM [EKGdates] WHERE [Ekgdates].[DOS]=[July04EKG].[DOS]))<>False))
ORDER BY July04EKG.DOS;
Please tell me what I'm missing, I've tried deleting the <>False portion, but that doesn't work.
Thanks so much!!!
Here's my code (I didn't write this in SQL myself, this is just copied from SQL view of Query Design):
SELECT July04EKG.RecordNum, July04EKG.Last_name, July04EKG.First_name, July04EKG.MI, July04EKG.Address1, July04EKG.Address2, July04EKG.City, July04EKG.State, July04EKG.Zip, July04EKG.SSN, July04EKG.Phone, July04EKG.Sex, July04EKG.DOB, July04EKG.Primary_Ins, July04EKG.Secondary_Ins, July04EKG.Primary_Group, July04EKG.Secondary_Group, July04EKG.Primary_ID, July04EKG.Secondary_ID, July04EKG.DOS, July04EKG.Referring_MD, July04EKG.DX, July04EKG.Location, July04EKG.Precert, (SELECT [Reading_Dr] FROM [EKGdates] WHERE [Ekgdates].[DOS]=[July04EKG].[DOS]) AS Reading_Dr
FROM July04EKG
WHERE ((((SELECT [Reading_Dr] FROM [EKGdates] WHERE [Ekgdates].[DOS]=[July04EKG].[DOS]))<>False))
ORDER BY July04EKG.DOS;
Please tell me what I'm missing, I've tried deleting the <>False portion, but that doesn't work.
Thanks so much!!!