|
|
Working out ages from DOB.
i had this code in a select query which ran fine in 2003...
DateDiff("yyyy",[dateofbirth],Now())+Int(Format(Now(),"mmdd")<Format([dateofbirth],"mmdd"))
now in 2007 i'm told.... undefined function "format" in expression.
any help will be much appreciated as i am about to revert to 2003 in despair!
|
|
0
|
|
|
|
Reply
|
Utf
|
9/13/2007 1:30:00 PM |
|
For the code to work in Access 2007, you may need to specify that your
database is in a trusted location:
Office Button | Access Options | Trust Center | Trust Center Settings
Alternatively, you may need to solve a problem with your library references:
http://allenbrowne.com/ser-38.html
--
Allen Browne - Microsoft MVP. Perth, Western Australia
Tips for Access users - http://allenbrowne.com/tips.html
Reply to group, rather than allenbrowne at mvps dot org.
"mike@work" <mikework@discussions.microsoft.com> wrote in message
news:5F7172E6-F11B-4B4E-B033-E202190EA5B3@microsoft.com...
>i had this code in a select query which ran fine in 2003...
>
> DateDiff("yyyy",[dateofbirth],Now())+Int(Format(Now(),"mmdd")<Format([dateofbirth],"mmdd"))
>
> now in 2007 i'm told.... undefined function "format" in expression.
>
> any help will be much appreciated as i am about to revert to 2003 in
> despair!
|
|
0
|
|
|
|
Reply
|
Allen
|
9/13/2007 1:41:30 PM
|
|
|
1 Replies
317 Views
(page loaded in 0.051 seconds)
Similiar Articles: Working out ages from DOB. - microsoft.public.access.queries ...For the code to work in Access 2007, you may need to specify that your database is in a trusted location: Office Button | Access Options | Trust Center | Trust ... Excel - Calculate age from DOB in years, months days - microsoft ...Worker Retires Age DOB Fred 15-Mar-10 65 15-Mar-45 "Fred" is in A2 ... access... you tried... can you tell me why the below didn't work ... Excel - Calculate age from DOB ... Help with DOB formula. - microsoft.public.access.queries ...Working out ages from DOB. - microsoft.public.access.queries ... any help will be much appreciated as i am about to revert to 2003 in despair! ... Help with DOB formula ... Word hangs in Trust Center Settings - microsoft.public.word ...Working out ages from DOB. - microsoft.public.access.queries ... Word hangs in Trust Center Settings - microsoft.public.word ... Working out ages from DOB. - microsoft ... Calculating age in a Word template/Form from the DOB field ...... solutions to my problem but none seem to work for me. ... you might want to do with dates in Word, check out my ... Form from the DOB field ... Excel - Calculate age from DOB in ... Calculating Age in Access - microsoft.public.access.gettingstarted ...> > > > I was hoping to use this expression: > > 'Fails if DOB is null ... Access Tips: Working Out a Person's Age If you need to show someone's age you should ask Access ... DateDiff function in expression - microsoft.public.access.forms ...Working out ages from DOB. - microsoft.public.access.queries ... DateDiff function in expression - microsoft.public.access.forms ... Working out ages from DOB. - microsoft ... Criteria for age calculation - microsoft.public.accessDateDiff("yyyy",[DoB],Date()) - IIf(DateSerial(Year(Date()), Month([DoB ... access calculate age in query - microsoft.public.access Access Tips: Working Out a Person's Age ... Age calculation - microsoft.public.word.docmanagement... then modify the fields to work with your formfield bookmark names i.e. dob and ... am still unable to figure out how to > calculate the age of a subject based on a DOB ... Calculating someones age - microsoft.public.access.forms ...... 2007 and I want to calculate a persons age in years, months and days on a form. I have a DOB field. ... query - microsoft.public.access Access Tips: Working Out a Person's Age ... Working out ages from DOB. DataBase - DataBase Discussion List ...For the code to work in Access 2007, you may need to specify that your database is in a trusted location: Office Button | Access Options | Trust Center | Trust Center ... Working out ages from DOB. - microsoft.public.access.queries ...For the code to work in Access 2007, you may need to specify that your database is in a trusted location: Office Button | Access Options | Trust Center | Trust ... Access Tips: Working Out a Person's AgeWorking out Someone's Age. When storing personal data, it is normal practice to record ... examples below take birth dates from a field called DoB and calculate an age ... Work out age from DOB. - Hot Scripts ForumsIn my database I have stored the users the date, month and year of their birth date in seperate fields. I would like to be able to return the users age from this ... Working Out a Person's Age in Microsoft ExcelWorking Out a Person's Age. A person's age is the amount of time since they were born (I know you know that but the computer doesn't, and we have to start thinking like the ... 7/29/2012 6:26:09 PM
|
|
|
|
|
|
|
|
|