(Access 2007). I am having trouble creating a macro for a search button I want to place on my form. I want users to be able to click the button and then search for a specific record in the database based on the criteria of that particular field.
Form Name= frmInventory
Text Field= HPDNo (this field consists of a unique 5 digit identifier for each record in the table)
I tried creating the following macro for the button -
Action: SearchForRecord
Object Type: Form
Object Name: frmInventory
Record: First
Where Condition: ="HPDNo = ' " & Forms ! [frmInventory] ! [HPDNo] & " ' "
(the Where syntax came from the help file in Access)
When I click the button on the form, nothing happens. Any idea what I may be doing wrong? Thanks for anyone's input.
Form Name= frmInventory
Text Field= HPDNo (this field consists of a unique 5 digit identifier for each record in the table)
I tried creating the following macro for the button -
Action: SearchForRecord
Object Type: Form
Object Name: frmInventory
Record: First
Where Condition: ="HPDNo = ' " & Forms ! [frmInventory] ! [HPDNo] & " ' "
(the Where syntax came from the help file in Access)
When I click the button on the form, nothing happens. Any idea what I may be doing wrong? Thanks for anyone's input.