Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Wanet Telecoms Ltd on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Date in formula problem 1

Status
Not open for further replies.

kphu

MIS
May 30, 2002
346
US
Happy Holidays All!

Using access 2003.

Query formula.

YN: IIf([tablename]![DateOfService]>=10/10/2004,"y","n")

I'm getting "y" for everything even though the date of service field is < 10/10/2004.

Any help would be much appreciated.

Ken
 
Is DateOfService defined as a date type?

Have you tried using the date delimiters?

YN: IIF(DateOfService >= #10/10/2004#, "Y", "N")



Leslie
 
Hi Paul,

Thanks for the response. I just tried it with the date delimiters. I forgot about that rule.

Its working now. Thanks for the help.

Ken
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top