Hi there,
Ref: faq181-1374
Being interested in being able to select birthdays and or special dates within a date frame I came across the stated faq. I have created a table called Employees which also contains a field called Birthdate, here is the SQL View:
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));
I have a birthdate which is 28/10/1970 and funny enough I get 40113,75 as [Nextbirthday] ????
I have been looking at all parameters and I am unable to figure out why
Can anyone throw some light on this subject for me.
Thanks,
Ref: faq181-1374
Being interested in being able to select birthdays and or special dates within a date frame I came across the stated faq. I have created a table called Employees which also contains a field called Birthdate, here is the SQL View:
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));
I have a birthdate which is 28/10/1970 and funny enough I get 40113,75 as [Nextbirthday] ????
I have been looking at all parameters and I am unable to figure out why
Can anyone throw some light on this subject for me.
Thanks,