J jessicatran New member Local time Today, 15:58 Joined Jun 20, 2007 Messages 5 Jun 22, 2007 #1 Hi, In the query table... the expression is: Age: DateDiff("yyyy",[DateOfBirth],Date())+(Format(Date(),"mmdd")<Format([DateOfBirth],"mmdd")) This only output the number of year. How can I write to output number of days? Thanks, Jessica Attachments Query By Form Access 2000.zip Query By Form Access 2000.zip 30.7 KB · Views: 120
Hi, In the query table... the expression is: Age: DateDiff("yyyy",[DateOfBirth],Date())+(Format(Date(),"mmdd")<Format([DateOfBirth],"mmdd")) This only output the number of year. How can I write to output number of days? Thanks, Jessica
boblarson Smeghead Local time Today, 15:58 Joined Jan 12, 2001 Messages 32,059 Jun 22, 2007 #2 Use the DateDiff function in the query DaysOld: DateDiff("d",[YourDateFieldHere],Date())
J jessicatran New member Local time Today, 15:58 Joined Jun 20, 2007 Messages 5 Jun 22, 2007 #3 Wow.. that was easy... thanks. Jessica
RuralGuy AWF VIP Local time Today, 16:58 Joined Jul 2, 2005 Messages 13,825 Jun 22, 2007 #4 Something like this? Attachments QBF2k.zip QBF2k.zip 17.7 KB · Views: 111