FancyPrairie
Programmer
I have created a Data Access Page containing 3 different groups. Looks something like this:
+ Company1
+ Company2
+ Department1
+ Employee1
+ Employee2
...
+ Department2
+ Company3
The recordsource for the 3 group (Employee) is based on a stored procedure that accepts parameters. The BeforeInitialBind event of the MSODSC object contains the following code:
msodsc.RecordsetDefs("spEmp").ParameterValues.Add "@myValue", 1
This works fine. However, the user is allowed to click a button that would require me to change the parameterValue. But I have not been successfull at resetting the ParameterValue after it is initally set. Using debug it appears that it has been set, but the data does not reflect it. It looks like it needs to be requeried. But the group is not visible (expanded) when the parameter is set, so I cannot issue the MSODSC.DataPages(2).requery command.
How would I go about resetting the parameter and requery the page?
+ Company1
+ Company2
+ Department1
+ Employee1
+ Employee2
...
+ Department2
+ Company3
The recordsource for the 3 group (Employee) is based on a stored procedure that accepts parameters. The BeforeInitialBind event of the MSODSC object contains the following code:
msodsc.RecordsetDefs("spEmp").ParameterValues.Add "@myValue", 1
This works fine. However, the user is allowed to click a button that would require me to change the parameterValue. But I have not been successfull at resetting the ParameterValue after it is initally set. Using debug it appears that it has been set, but the data does not reflect it. It looks like it needs to be requeried. But the group is not visible (expanded) when the parameter is set, so I cannot issue the MSODSC.DataPages(2).requery command.
How would I go about resetting the parameter and requery the page?