As usual, there is more than one way to skin a cat ... this select statement can be pasted straight into QBE sql but do not forget to change table (Employees) and field name (Birthdate) ...
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));
NOTE : the WHERE statement is exactly the same as the NextBirthday line.
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.