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 SkipVought on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Query Issue: Enter Parameter Value

Status
Not open for further replies.

striker73

MIS
Jun 7, 2001
376
0
0
US
I have a query that has the following field:

Planned_Test_Date = IIf(IsDate([TestDate]),[TestDate],"else")

The TestDate field is a date field that is sometimes null. When I display the table, it looks like all of the entries are either a date field or null, so the data is fine.

When I run the query, I get a window that pops up and says "Enter Parameter Value Planned_Test_Date. In my experience, this happens when you are referring to a field that doesn't exist.

Can someone help me out? Thanks!
 
Planned_Test_Date = IIf(IsDate([TestDate]),[TestDate],"else")

Your field [TestDate] is a field in one of your tables yes? So reference it by table by changing [testdate] to [YourTableName].[TestDate].

Hope that works,
ChaZ
 
If in query grid, replace the = (equal sign) by : (colon).
Don't sure access will not choke on "else", something like type mismatch.
You may consider this:
Planned_Test_Date: Nz([TestDate])

Hope This Helps, PH.
Want to get great answers to your Tek-Tips questions? Have a look at FAQ219-2884 or FAQ222-2244
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top