C
CJ
Hi all I am using Access 2003.
Since filter by form does not work for subforms, I am trying to create a
filter on the fly.
I have a subform (fsubExplorationLocation) that has the recordsource of
tblExplorationLocation. I have created a parameter query
(qfrmExplorationLocation) that I only want to apply if the user clicks on a
"Location Filter" button.
So, when a user clicks the button on the main form, the recordsource of the
subform changes, the parameter is run and the filter applied (I hope). At
the moment I am receiving the following error message when I click on the
button: "Object Doesn't Support This Property or Method".
Could somebody please help me out with this problem??!!??
My code for the On Click Event of my button is as follows:
Me!fsubExplorationLocation.RecordSource = "qfrmExplorationLocation"
DoCmd.Requery Me!fsubExplorationLocation
Thanks in Advance.
Since filter by form does not work for subforms, I am trying to create a
filter on the fly.
I have a subform (fsubExplorationLocation) that has the recordsource of
tblExplorationLocation. I have created a parameter query
(qfrmExplorationLocation) that I only want to apply if the user clicks on a
"Location Filter" button.
So, when a user clicks the button on the main form, the recordsource of the
subform changes, the parameter is run and the filter applied (I hope). At
the moment I am receiving the following error message when I click on the
button: "Object Doesn't Support This Property or Method".
Could somebody please help me out with this problem??!!??
My code for the On Click Event of my button is as follows:
Me!fsubExplorationLocation.RecordSource = "qfrmExplorationLocation"
DoCmd.Requery Me!fsubExplorationLocation
Thanks in Advance.