A bit more info on what Chris is talking about.
Where is this going? Is it to filter a form? To open a report?
If it is for a report, you can use the WhereCondition of the OpenReport
action. For an example, see method 2 in this article:
Limiting a Report to a Date Range
at:
http://allenbrowne.com/casu-08.html
If it is to filter a form, you can do the same to create the Filter of
the
form, i.e. add a couple of unbound text boxes to the form, build the
strWhere string, and then:
Me.Filter = strWhere
Me.FilterOn = True
message
message I am trying to create a query that runs record dates as follows:
Like [Enter (* for all dates) Record Date:]
Between [Please Enter Starting Date] And [Please Enter Ending Date]
the problem I have is that I need a formula that stops prompting
between
dates once * is entered for all dates.
Thank you for any help
Kevin
Kevin,
When you create queries that generate automatic prompts by using []
square bracket marks around phrases, that is a sort of "automatic"
feature offered by MS Access.
If you have a query that has the following:
Between [Please Enter Starting Date] And [Please Enter Ending Date]
Then MS Access is *going* to automatically make both requests.
There is no way I know of to "stop" MS Access from asking for the
second bit of information based on the values entered into the first
bit.
The way around this is a bit more complicated. It involves creating
your own data entry forms that can use VBA code to validate and act on
user entered data.