What you posted as the error message seems to have an extraneous square
bracket at the end.
What you poste as the calculated expression seems to be correct. All the
parentheses and brackets seem to be in matched pairs.
Try breaking this down into parts. Just run the test first
NewDate: IsDate([CallDate])
And see if you get an error. If no error, try
IIF(IsDate(CallDate),"Date","NoDate")
If no error, try
IIF(IsDate(CallDate),CallDate,Null)
And then add the DateValue function as the last step
If you want someone to review the SQL statement to see if there is an
error, open the query in SQL view (View: SQL on the menu), copy the
text, and paste it into your message.
'====================================================
John Spencer
Access MVP 2002-2005, 2007-2009
The Hilltop Institute
University of Maryland Baltimore County
'====================================================
John I received this error when I ran the query: Extra ) in query expression
'contacts, IIf(IsDate([calldate]),DateVal([calldate]),Null)]'.
here is what I put in the top line of the query.
NewDate: IIf(IsDate([calldate]),DateVal([calldate]),Null)
John Spencer said:
Use DateVal in an expression like this
IIF(Isdate(SomeField),DateVal(SomeField),Null)
'====================================================
John Spencer
Access MVP 2002-2005, 2007-2009
The Hilltop Institute
University of Maryland Baltimore County
'====================================================
Richard wrote:
I need help with a query to remove the "time" refference in my date/time field.
7/13/2009 12:01:45 PM I would like to update it to this >> 7/13/2009
Thanks for any help.