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
Syntax error DateDiff Søren Microsoft Access Form Coding 10 3rd Feb 2008 06:24 AM
datediff function compile error =?Utf-8?B?TWljaGFlbCBXaGl0bmV5?= Microsoft Access Queries 3 13th Jul 2007 10:07 PM
Error with DateDiff =?Utf-8?B?TWFpbCBNZXJnZSBIZWxw?= Microsoft Access VBA Modules 1 25th May 2006 01:15 AM
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 05:24 PM.