D
DMUM via AccessMonster.com
Hello, I've been searching most of the morning trying to find anything within
the forum and outside of the forum that would help me with this.
I have a Main form called - Run_import
I have a sub form called - PRSAdef_New
On my Main form, I am trying to use a combo box to filter the underlying
continuous form recordsource. Here is my code:
Set frm = Form_Run_Import
If IsNull(Me.cboPRSAType) Then
frm.RecordSource = "Test"
Else
Me!frmPRSADef_New.Form.Filter = "PRSAType = '" & Me!txtPRSAType & "'"
Me!frmPRSADef_New.Form.FilterOn = True
End If
End Sub
I keep getting a popup message that asks for thr value of PRSAType. I've
tried other combinations of code that seem to work because I get no error,
but the data in the continuos form does not update based on the selection
from the combo box. I've created filters before, but not using a subform, so
if someone could please give me the necessary syntax, I'd really appreciate
it.
Thanks
Deborah
the forum and outside of the forum that would help me with this.
I have a Main form called - Run_import
I have a sub form called - PRSAdef_New
On my Main form, I am trying to use a combo box to filter the underlying
continuous form recordsource. Here is my code:
Set frm = Form_Run_Import
If IsNull(Me.cboPRSAType) Then
frm.RecordSource = "Test"
Else
Me!frmPRSADef_New.Form.Filter = "PRSAType = '" & Me!txtPRSAType & "'"
Me!frmPRSADef_New.Form.FilterOn = True
End If
End Sub
I keep getting a popup message that asks for thr value of PRSAType. I've
tried other combinations of code that seem to work because I get no error,
but the data in the continuos form does not update based on the selection
from the combo box. I've created filters before, but not using a subform, so
if someone could please give me the necessary syntax, I'd really appreciate
it.
Thanks
Deborah