Good day all,
I have a table where the ID is an auto number type.
I have a form with an "on click event" for a cmd bttn and the following code:
Private Sub Command12_Click()
Dim AddReqNo As String
AddReqNo = InputBox("Please enter the Request No. from your email", "Request No. Entry")
DoCmd.OpenForm "Frm_AirTravel", acNormal, , "RequestID='" & AddReqNo & "'"
End Sub
When the user clicks on the bttn the Inputbox shows up but it does not open the form where the RequestID is = the data entered into the inputbox. Instead it gives me Error 3464 Data Type Mismatch.
Can someone please help me? :banghead:
Thank you
I have a table where the ID is an auto number type.
I have a form with an "on click event" for a cmd bttn and the following code:
Private Sub Command12_Click()
Dim AddReqNo As String
AddReqNo = InputBox("Please enter the Request No. from your email", "Request No. Entry")
DoCmd.OpenForm "Frm_AirTravel", acNormal, , "RequestID='" & AddReqNo & "'"
End Sub
When the user clicks on the bttn the Inputbox shows up but it does not open the form where the RequestID is = the data entered into the inputbox. Instead it gives me Error 3464 Data Type Mismatch.
Can someone please help me? :banghead:
Thank you