Hi All,
I'm using a multi-field search code, which I got from this forum
I've also inserted code so that when a record is selected in the search, i can click a button - and it the particular record found will carry into a new form.
Basically... when I first set it up - one of the fields that I was searching on "txtBarcode" was only numbers. Now, the data that I need to enter contains letters and numbers.
Since changing the data type and inputting my new data, the button has broken. When I click it, I receive an Enter Parameter Value box...
Is there a solution for this?
Any help appreciated.
Cheers,
Leigh
I'm using a multi-field search code, which I got from this forum
I've also inserted code so that when a record is selected in the search, i can click a button - and it the particular record found will carry into a new form.
Code:
Private Sub btnLoan_Click()
On Error GoTo Err_btnLoan_Click
Dim stDocName As String
Dim stLinkCriteria As String
stDocName = "frmEquip_Issue"
stLinkCriteria = "[txtBarcode]=" & Me![txtBarcode]
DoCmd.OpenForm stDocName, , , stLinkCriteria
Exit_btnLoan_Click:
Exit Sub
Err_btnLoan_Click:
MsgBox Err.Description
Resume Exit_btnLoan_Click
End Sub
Basically... when I first set it up - one of the fields that I was searching on "txtBarcode" was only numbers. Now, the data that I need to enter contains letters and numbers.
Since changing the data type and inputting my new data, the button has broken. When I click it, I receive an Enter Parameter Value box...
Is there a solution for this?
Any help appreciated.
Cheers,
Leigh