G
Guest
Hello Everyone.
Please can someone help. I am trying to add a simple command button with the
code shown below so that it open a inputbox where you can type the record id
and it will open in a form
Private Sub OpenSearchJob_Click()
Dim RecNum As String
RecNum = InputBox$("Enter Record No. You Wish To View", "Search")
DoCmd.OpenForm "Clients", acNormal, , , acFormReadOnly, ,
"
.[JobID]='" & RecNum & "'"
End Sub
The problem is the code does not seem to work and just keeps displying the
fisrt record in the database. Can anyone please help.
Many thanks
Steve C
Please can someone help. I am trying to add a simple command button with the
code shown below so that it open a inputbox where you can type the record id
and it will open in a form
Private Sub OpenSearchJob_Click()
Dim RecNum As String
RecNum = InputBox$("Enter Record No. You Wish To View", "Search")
DoCmd.OpenForm "Clients", acNormal, , , acFormReadOnly, ,
"
End Sub
The problem is the code does not seem to work and just keeps displying the
fisrt record in the database. Can anyone please help.
Many thanks
Steve C