R
Rocky
Hi,
I am using Access 2002 sp1. I have a form with a command button that I want
to use to preview a report. I am getting one of the values for the report
query from a label control on the form. Whenever I press the command button
I am prompted for the value, like in a parameter query. I know the query
is correct because I use the same values and procedure for a subform on the
form and it gets the subform data with no problem, the queries are
identical. Also if I type the data into the parameter prompt, the form will
preview without any problems. Any ideas how I can get this value into the
query without having to type it or paste it in the parameter prompt? I hope
this makes sense to someone and I am on the correct newsgroup to be asking
it. Any ideas or help would be appreciated.
Thanks,
Rocky
I am using Access 2002 sp1. I have a form with a command button that I want
to use to preview a report. I am getting one of the values for the report
query from a label control on the form. Whenever I press the command button
I am prompted for the value, like in a parameter query. I know the query
is correct because I use the same values and procedure for a subform on the
form and it gets the subform data with no problem, the queries are
identical. Also if I type the data into the parameter prompt, the form will
preview without any problems. Any ideas how I can get this value into the
query without having to type it or paste it in the parameter prompt? I hope
this makes sense to someone and I am on the correct newsgroup to be asking
it. Any ideas or help would be appreciated.
Thanks,
Rocky