S
Suzie Raboin
I have an unbound subform will not allow me apply a filter based on
information that the user has already entered. I get an error message that
states "You canceled the previous operation."
I am trying to filter based on the Primary Key (an id number). However if I
filter based on another part of the record (consultant name) it works fine.
Does anyone know what might be causing this problem?
My code to open and filter the form is:
Forms![Switchboard]![Subform].SourceObject = "Consultant_Info"
Forms![Switchboard]![Subform].Form.Filter = ("[Firm_ID]=" & "'" & gvarFirm &
"'")
Forms![Switchboard]![Subform].Form.FilterOn = True
Thanks,
Suzie
information that the user has already entered. I get an error message that
states "You canceled the previous operation."
I am trying to filter based on the Primary Key (an id number). However if I
filter based on another part of the record (consultant name) it works fine.
Does anyone know what might be causing this problem?
My code to open and filter the form is:
Forms![Switchboard]![Subform].SourceObject = "Consultant_Info"
Forms![Switchboard]![Subform].Form.Filter = ("[Firm_ID]=" & "'" & gvarFirm &
"'")
Forms![Switchboard]![Subform].Form.FilterOn = True
Thanks,
Suzie