First, I don't understand why you even ask for a minimum or maximum value.
I've lived in NH for 50 years... not somewhere between 45 and 55! So right
off the bat, I'm confused as to what you're doing...
But, anyhow...
textbox1 = How long have you lived in the area Years " & between [Min
years
lived in area] and [Max years lived in area]
That statement yields "invalid syntax", and I agree.
You are trying to establish a criteria by mixing text ("How long... lived in
the area") and a criteria (Beteween [Min] and [Max]). That won't work
Your query criteria should look like this...
= Between [What is the minimum years you have lived here?] And [What is the
maximum years that you have lived here?]
You will be asked to input 2 individual values into 2 individual input
boxes. If more parameter input boxes come up, then you still have other
parameters in your query, or in other locations on your report.
hth
Al Camp
cee esimaje via AccessMonster.com said:
Al
thanks for your response to this
no I am not asking if 2 values can be entered into one parameter input box
th expresion I used is
textbox1 = How long have you lived in the area Years " & between [Min
years
lived in area] and [Max years lived in area]
sorry I posted the wrong parameter expression earlier.
in my parameter if a user types in the 1st input box as in expr above -
[min years] 1
and in the 2nd input box [max years] 23
my report returns all records within this range - which is fine!
However I want to find a way to use these values
ie [min years] where user inputs the 1 in the 1st input box
and 23 in the second [max years] input box
and return them to a text box on the report.
Currently I am getting a third and forth parameter input box
prompting for these values to return to the text box on the report. I dont
want this
What i do want is when the report is opened the 2 parameter boxes are
completed with min years and max years
which returns the records and also displays 1 - 23 in a text boxt on the
report, thus informing anyone reading
a hard copy of the report the range of years that were selected.
The third text box will be used as a title to the report and will show the
year ranges inputted for the parameter
to return the records in the report they are viewing
I thought the only way to do this would be by code ie on the REPORTS
OnOpen
event, which would
capture the input box values open the report set the parameters and use
the
inputted values
as the control source for the title of the report.
Hope this is a bit clearer
Many THX