Connecting Tech Pros Worldwide Forums | Help | Site Map

datediff

Newbie
 
Join Date: Jun 2007
Posts: 18
#1: Jul 12 '07
hi
I am trying to get a list of name who's birthday is 35 of days away. I have
build a query with all of the information the I need. Under the field birth I
enter the following criteria:
IIf(DateDiff("d",[birth],Date())<=35,[TITLE]+" "+[LNAME]," ")

I get an error 3464 (Data Type Mismatch in criteria expression)

In my table Birth is setup the following way:
Date/Time
Medium Date

missinglinq's Avatar
Moderator
 
Join Date: Nov 2006
Location: Richmond, Virginia USA
Posts: 3,000
#2: Jul 12 '07

re: datediff


Try changing

[TITLE]+" "+[LNAME]

to

[TITLE] & " " & [LNAME]
Reply