D
David Horowitz
Hi. I have a query named Query1. Let's say it looks like this:
Select * from Table1 where Field1=[Enter Value]
So whenever you run the query, it prompts for "Enter Value".
So now, I have Report1, whose RecordSource is Query1.
So when I run Report1, Access prompts "Enter Value". Everything's good so
far.
Well, the thing is, I need to do some code inside the report for some
purpose which I won't go into, and I need to know what value the user
entered for [Enter Value]. Is there some way for me to get that value?
I know it would seem like I could just query maybe any Detail record and see
what value Field1 has, and that would be it, but my case is actually a
little more complicated, because my query is actually more like:
Select * from Table1 where TheDate between [Start Date] and [End Date]
and I want to know what the Start Date and the End Date are inside the VBA
code because I need to do something with it.
TIA!
David
Select * from Table1 where Field1=[Enter Value]
So whenever you run the query, it prompts for "Enter Value".
So now, I have Report1, whose RecordSource is Query1.
So when I run Report1, Access prompts "Enter Value". Everything's good so
far.
Well, the thing is, I need to do some code inside the report for some
purpose which I won't go into, and I need to know what value the user
entered for [Enter Value]. Is there some way for me to get that value?
I know it would seem like I could just query maybe any Detail record and see
what value Field1 has, and that would be it, but my case is actually a
little more complicated, because my query is actually more like:
Select * from Table1 where TheDate between [Start Date] and [End Date]
and I want to know what the Start Date and the End Date are inside the VBA
code because I need to do something with it.
TIA!
David