Group: microsoft.public.access · Group Profile · Search for Monthsold in microsoft.public.access
Author: Steve B
Date: Jan 8, 2008 09:46
You could use a calculated field. Field: MonthsOld: (DateDiff("d",[YourDateField],Date())\30) * 30 That should --return the number of days between today and your date field --Integer divide the result by 30 giving you 0,1,2,etc --Multiply the result by 30 giving you 0, 30, 60, 90, etc. 0-29 would return 0 30-59 would return 30 60-89 would return 60 etc. If you want 0 to 30, 31 to
|