Hi
I'm a complete newbie to Access but work have asked me to create a form on my database which will allow all users to search in a box in a split form, and relevant records appear in the lower screen. I'm working in Access 2007.
I have a text box at the moment for users to type their number into (document number, etc) with a macro button to search. The code for the button is:
My table is t0000_DRAWING_L IST and the command button is Text24.
At the moment when I click the button it shows up with "No records found" and I'm not sure why.
Lots of people are going to be using this for searching so I want it to be as user friendly as possible.
Can anyone help me with this please? I apologise if I have left anything out.
Thanks in advance,
Helen.
I'm a complete newbie to Access but work have asked me to create a form on my database which will allow all users to search in a box in a split form, and relevant records appear in the lower screen. I'm working in Access 2007.
I have a text box at the moment for users to type their number into (document number, etc) with a macro button to search. The code for the button is:
Code:
Private Sub Command26_Click()
If IsNull(Text24) = False Then
Me.Recordset.FindFirst "[t0000_DRAWING_LIST]=" & Text24
Me!Text24 = Null
If Me.Recordset.NoMatch Then
MsgBox "No record found", vbOKOnly + vbInformation, "Sorry"
Me!Text24 = Null
End If
End If
End Sub
At the moment when I click the button it shows up with "No records found" and I'm not sure why.
Lots of people are going to be using this for searching so I want it to be as user friendly as possible.
Can anyone help me with this please? I apologise if I have left anything out.
Thanks in advance,
Helen.
Comment