So Im using this code in pop up on a front end data base.
It works fine, except when new records are inputted into the table that the code is searching in the backend. I search for the new records and I get the "NoMatch" message: "No Record Found". BUT when I close down this frontend and open it again I can search the new records.
Is there a way I can search the new records without having to close and open my frontend database?
Thanks,
Code:
Private Sub btnSearch_Click()
Dim rst As Object
Set rst = Me.RecordsetClone
rst.FindFirst "[PalletNumber]=" & Me!cboRawInput
If rst.NoMatch Then
MsgBox "Record Not Found"
Else
Me.Bookmark = rst.Bookmark
End If
rst.Close
Set rst = Nothing
Me.Refresh
[Forms]![FloorLogistics]![NavigationSubform].[Form].Refresh
End Sub
It works fine, except when new records are inputted into the table that the code is searching in the backend. I search for the new records and I get the "NoMatch" message: "No Record Found". BUT when I close down this frontend and open it again I can search the new records.
Is there a way I can search the new records without having to close and open my frontend database?
Thanks,