Hi All, I read with interest the FAQ on calculating a birthday within the next 30 days and hope I can use something similar for my situation.
What I have is this: I have a table (tblSENESarLog), in it I have a field for the Number assigned to each Search and Rescue case (sene_case_num). I am trying to create a "pass-down" type form and report and would like to automatically have the Cases (sene_case_num) from the last 2 days displayed. I do have a Day field as well. Thanks so much in advance.
Steph
Below is the code from the FAQ:
SELECT Employees.Birthdate,
Int((Now()-[birthdate])/365.25) AS Age,
[Birthdate]+((Int((Now()-[birthdate])/365.25)+1)*365.25) AS NextBirthday,
(Int((Now()-[birthdate])/365.25)+1) AS AgeNextBirthday, [Age]+1 AS Next
FROM Employees
WHERE ((([Birthdate]+((Int((Now()-[birthdate])/365.25)+1)*365.25)) Between Now() And Now()+30));
What I have is this: I have a table (tblSENESarLog), in it I have a field for the Number assigned to each Search and Rescue case (sene_case_num). I am trying to create a "pass-down" type form and report and would like to automatically have the Cases (sene_case_num) from the last 2 days displayed. I do have a Day field as well. Thanks so much in advance.
Steph
Below is the code from the FAQ:
SELECT Employees.Birthdate,
Int((Now()-[birthdate])/365.25) AS Age,
[Birthdate]+((Int((Now()-[birthdate])/365.25)+1)*365.25) AS NextBirthday,
(Int((Now()-[birthdate])/365.25)+1) AS AgeNextBirthday, [Age]+1 AS Next
FROM Employees
WHERE ((([Birthdate]+((Int((Now()-[birthdate])/365.25)+1)*365.25)) Between Now() And Now()+30));