Search not showing results

smogsy

New member
Local time
Today, 05:06
Joined
Jan 20, 2011
Messages
4
Hi all,

I have a form just for searching my database i created a bound text box which is bound to to Scriptname & want it to search Scriptname information in just 1 table & Display the results.

My Code executes with no Errors what so ever, however im not getting any results displayed. Can you explain how i can do this?

ScriptName = Text Box & ScriptName is also field i want to search

Code:
      If IsNull(ScriptID) Then
      MsgBox "Please Enter An Scriptname"
      End If
 
      If IsNull(Me.ScriptName) = False Then
          Me.ScriptName.SetFocus
          Me.Recordset.FindFirst "ScriptName='" & Me.ScriptName.Text & "'"
         
         Me!ScriptName = Null
  If Me.Recordset.NoMatch Then
             MsgBox "Account Number Not Found", vbOKOnly + vbInformation, "Sorry"
             Me!ScriptName = Null
         End If
     End If
End Sub
 
You need to include all of the code involved from Private Sub...to...End Sub.
 

Users who are viewing this thread

Back
Top Bottom