date parameter

  • Thread starter Thread starter Guest
  • Start date Start date
G

Guest

I have a query built with a "start date" and "end date" parameter. What can
I enter in the "end date" to allow the query to run through "current?"
 
Try this

Select * From TableName Where FieldName Between [Please Enter start Date:]
And IIf([Please Enter End Date:] is null Or [Please Enter End Date:] = "" ,
Date(), [Please Enter End Date:])
 
As an interface issue, I'd suggest that you make the prompt read [Please
Enter End Date or Hit Enter]. This alerts the user to the fact that this
option is available. Of course, Jim might be the only user, in which case,
this is probably not necessary.

--

Chaim


Ofer said:
Try this

Select * From TableName Where FieldName Between [Please Enter start Date:]
And IIf([Please Enter End Date:] is null Or [Please Enter End Date:] = "" ,
Date(), [Please Enter End Date:])
--
I hope that helped
Good luck


Jim said:
I have a query built with a "start date" and "end date" parameter. What can
I enter in the "end date" to allow the query to run through "current?"
 

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

Back
Top