PC Review


Reply
Thread Tools Rate Thread

DateDiff Error

 
 
Gntlhnds
Guest
Posts: n/a
 
      27th May 2010
I have two identical forms, each with a DOB field and an Age field. I'm
using the following expression to display the age in each form:

=DateDiff("yyyy",[DOB],Now())+Int(Format(Now(),"mmdd")<Format([DOB],"mmdd"))

On one form, it works perfectly. In the other form, I get a #Name? error.
Why would it work in one form, but not the other? I was wondering if it was
a formatting difference for the DOB field, but that isn't it. Thanks for
thelp.
 
Reply With Quote
 
 
 
Reply

Thread Tools
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
RE: DateDiff Error Daryl S Microsoft Access Forms 0 27th May 2010 09:54 PM
RE: DateDiff Error Gntlhnds Microsoft Access Forms 0 27th May 2010 09:49 PM
Using IIf and DateDiff #Error Opal Microsoft Access Queries 3 22nd May 2008 09:49 PM
DateDiff error? =?Utf-8?B?ZXNjdWRvbG0=?= Microsoft Access 5 5th Oct 2005 08:00 PM
DateDiff error? =?Utf-8?B?ZXNjdWRvbG0=?= Microsoft Access 0 5th Oct 2005 04:35 PM


Features
 

Advertising
 

Newsgroups
 


All times are GMT +1. The time now is 12:50 AM.