A
Access rookie
Hello,
I'm having some results that I can see in the table disappear in the query
I'm running.
The SQL for the query is as follows: (I don't really know about much of this
stuff...)
SELECT tblstudents.Last, tblstudents.First, tbltraining.[Class Name],
tbltraining.[Class Date], tbltraining.Duration, IIf([Duration] Is
Null,Null,DateAdd("yyyy",[Duration],[Class Date])) AS ExpireDate
FROM tblstudents INNER JOIN tbltraining ON tblstudents.[Employee Number] =
tbltraining.[Employee Number]
WHERE (((IIf([Duration] Is Null,Null,DateAdd("yyyy",[Duration],[Class
Date])))<[Enter Date:]))
ORDER BY tbltraining.[Class Name];
Uh, yeah.
I have classes that start with the same name: eg Medication I, Medication
II, and Medication III. It's picking up Meds I and III, it can't find them
all when they are taken on different days. If they are taken on the same day,
it shows up fine.
A little confused,
John.
I'm having some results that I can see in the table disappear in the query
I'm running.
The SQL for the query is as follows: (I don't really know about much of this
stuff...)
SELECT tblstudents.Last, tblstudents.First, tbltraining.[Class Name],
tbltraining.[Class Date], tbltraining.Duration, IIf([Duration] Is
Null,Null,DateAdd("yyyy",[Duration],[Class Date])) AS ExpireDate
FROM tblstudents INNER JOIN tbltraining ON tblstudents.[Employee Number] =
tbltraining.[Employee Number]
WHERE (((IIf([Duration] Is Null,Null,DateAdd("yyyy",[Duration],[Class
Date])))<[Enter Date:]))
ORDER BY tbltraining.[Class Name];
Uh, yeah.
I have classes that start with the same name: eg Medication I, Medication
II, and Medication III. It's picking up Meds I and III, it can't find them
all when they are taken on different days. If they are taken on the same day,
it shows up fine.
A little confused,
John.