When I click on the command button, I recieve an inputbox. There I fill in the name of my client. Then when I put on Ok, I would like to recieve only the record of the client.
can someone say me where I'm wrong.
tnx
xxx
Private Sub cmdsearchonmerk_Click()
Dim Db As CurrentProject
Dim frm As Form_frmresulthardware
Dim trademark, strSQL As String
Set Db = CurrentProject
trademark = InputBox("Which trademark are you searching for? ")
strSQL = "Select * from frmresulthardware where trademark=" & Label3
DoCmd.OpenForm "frmresulthardware"
Label3.SetFocus
can someone say me where I'm wrong.
tnx
xxx
Private Sub cmdsearchonmerk_Click()
Dim Db As CurrentProject
Dim frm As Form_frmresulthardware
Dim trademark, strSQL As String
Set Db = CurrentProject
trademark = InputBox("Which trademark are you searching for? ")
strSQL = "Select * from frmresulthardware where trademark=" & Label3
DoCmd.OpenForm "frmresulthardware"
Label3.SetFocus