AccessFlunky
50 pts. | May 5 2009 5:04PM GMT
SELECT Student.ID AS Student_ID, Student.StudentID, Student.FirstName, Student.LastName, Student.Address, Student.Address2, Student.City, Student.State, Student.Zip, Student.PhoneNumber, Student.MobileNumber, Student.EmailAddress, Student.StartDate, Course.CourseNumber, Course.CourseName, Course.Required, Course.Certificate_ID, Certificate.ID AS Certificate_ID, Certificate.Certificate, Certificate.Length, DateAdd(”yyyy”,[Length],[StartDate]) AS CompletionDate
FROM (Certificate INNER JOIN Course ON Certificate.ID = Course.Certificate_ID) INNER JOIN (Student INNER JOIN Table1 ON Student.ID = Table1.Student_ID) ON Course.CourseNumber = Table1.CourseNumber
WHERE (((DateAdd(”yyyy”,[Length],[StartDate]))<[Enter Date]))
ORDER BY DateAdd(”yyyy”,[Length],[StartDate]) DESC;
Does this help?
Carlosdl
29855 pts. | May 12 2009 2:01PM GMT
Sorry, I don’t have an answer. It should work.
I have read in the web some other people having similar problems. It seems to work when you use the DateAdd function in the WHERE clause with static values, but fails when using column names or parameters.
AccessFlunky
50 pts. | May 12 2009 2:11PM GMT
What I had to do to get it to work was just query the DateAdd function then query that value back to another query to run the <=[Cdate] criteria! Now it works and I get the information that I need. But thanks so much for your help!






