M
Mike Wilson
Help please
I want to use a message box to hold a search criteria and open a form
to display any matching record or records.
The code that I am trying to adapt is
DoCmd.OpenForm "AltAddress"
QryFld = "Company"
Me.Filter = "[Company] Like '*" & InputBox("Enter Company") & "*'"
Me.FilterOn = True
The message box is activated on the onclick event for a text box called
company.
All I manage to do is to open the AltAddress form displaying all record.
Any guidance would be gratefully appreciated
Thanks
I want to use a message box to hold a search criteria and open a form
to display any matching record or records.
The code that I am trying to adapt is
DoCmd.OpenForm "AltAddress"
QryFld = "Company"
Me.Filter = "[Company] Like '*" & InputBox("Enter Company") & "*'"
Me.FilterOn = True
The message box is activated on the onclick event for a text box called
company.
All I manage to do is to open the AltAddress form displaying all record.
Any guidance would be gratefully appreciated
Thanks