How would I do this if I wanted a starting and ending month. For
example,
what if I wanted to select more than one month? Can it prompt me to
enter
a
beginning month and ending month?
:
LOL!
Chaim is correct. WotMonth is just an example. Use any name you like
there.
Yes. That is the text of the prompt, since you aren't Australian
and
your
machine won't understand 'Wot' ;-) Just keep it inside the '[
.... ]'.
Access will prompt for these unless they happen to correspond to a
field
from a table or a control on your form.
in
message Ok that worked perfectly! Thank you! Now I have one more question,
when
the
query is run and the dialog box comes up to enter the month # it
says
"WotMonth". Can that be changed to something like "Enter Month"?
:
In the Criteria row of query design, under your date field,
enter:
Between DateSerial(Year(Date()), [WotMonth], 1) And
DateSerial(Year(Date()), [WotMonth] + 1, 0)
Choose Parameters on the Query menu.
In the dialog, enter:
WotMonth Integer
"Secret Squirrel" <
[email protected]>
wrote
in
message
I am trying to create a query that will run a date range for an
entire
month.
To make it easier for users I want them to be able to just
enter
the
#
of
the
month. For example, If they were to run a report for 09/01/05
to
09/30/05
all
they would need to do is enter "9" for the entire month. Can
this
be
done
by
converting the date range to just a month number?