date reference in formula

D

Daniel Collison

I have created a query that includes an admission date [admit_date] for
patients. I want to create a separate field in the query that flags all
admission dates less than 5/30/2008. The formula currently reads:

IIf([admit_date]<=5/30/2008,"Y","N")

The formula returns all "Y" values.

Any suggestions?

Thanks,
 
K

KARL DEWEY

Access does not read English so you must use symbols it knows --
IIf([admit_date]<=#5/30/2008#,"Y","N")
should do it.
 
D

Daniel Collison

Thanks...that did the trick! Daniel

KARL DEWEY said:
Access does not read English so you must use symbols it knows --
IIf([admit_date]<=#5/30/2008#,"Y","N")
should do it.
--
KARL DEWEY
Build a little - Test a little


Daniel Collison said:
I have created a query that includes an admission date [admit_date] for
patients. I want to create a separate field in the query that flags all
admission dates less than 5/30/2008. The formula currently reads:

IIf([admit_date]<=5/30/2008,"Y","N")

The formula returns all "Y" values.

Any suggestions?

Thanks,
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top