Hi
After reading some of the other threads on this issue I tried to do use the following code to select or search a specific record from the database which can be viewed or edited by the user. However, I am unable to make it work. Can someone guide what I am doing wrong.
-------------------------------------------------------
Private Sub Text150_Change()
Me.Filter = "IR = '" & Me.Text150 & "'"
Me.FilterOn = True
If Not Me.RecordsetClone.EOF Then
Me.RecordsetClone.MoveLast
End If
If Me.RecordsetClone.RecordCount = 0 Then
MsgBox "No records found matching the criteria"
End If
End Sub
-----------------------------------------------------------
Basically I have textbox in which user can input the id which can be in lower or upper case once the id has been put then the form loads the record.
After reading some of the other threads on this issue I tried to do use the following code to select or search a specific record from the database which can be viewed or edited by the user. However, I am unable to make it work. Can someone guide what I am doing wrong.
-------------------------------------------------------
Private Sub Text150_Change()
Me.Filter = "IR = '" & Me.Text150 & "'"
Me.FilterOn = True
If Not Me.RecordsetClone.EOF Then
Me.RecordsetClone.MoveLast
End If
If Me.RecordsetClone.RecordCount = 0 Then
MsgBox "No records found matching the criteria"
End If
End Sub
-----------------------------------------------------------
Basically I have textbox in which user can input the id which can be in lower or upper case once the id has been put then the form loads the record.