Hello,
I have created a Find Dialog Box that shows a list of Work Order numbers and when you enter a different WO number, it should take you to that record on the form.
Sometimes it gives an error Record Not in List, even though it is. In that case, if I select any other record in the list it will go to that number record. Then I have to re-enter my original records I was looking for in the Find box and it will work.
I have a cboGoToRecord combo box with the event procedure in the After Update. Code is listed below:
Private Sub cboGoToRecord_AfterUpdate()
On Error Resume Next
Dim rst As Object
Set rst = Me.RecordsetClone
rst.FindFirst "WID=" & Me.cboGoToRecord.Value
Me.Bookmark = rst.Bookmark
End Sub
The WID number is actually the autonumber. Work_OrderMain is the actual seven digit number I type in the find dialog box.
The query behind the Find box has two columns: WID and Work_OrderMain.
Thanks for any advice. It is greatly appreciated.
Best Regards,
Lisa
I have created a Find Dialog Box that shows a list of Work Order numbers and when you enter a different WO number, it should take you to that record on the form.
Sometimes it gives an error Record Not in List, even though it is. In that case, if I select any other record in the list it will go to that number record. Then I have to re-enter my original records I was looking for in the Find box and it will work.
I have a cboGoToRecord combo box with the event procedure in the After Update. Code is listed below:
Private Sub cboGoToRecord_AfterUpdate()
On Error Resume Next
Dim rst As Object
Set rst = Me.RecordsetClone
rst.FindFirst "WID=" & Me.cboGoToRecord.Value
Me.Bookmark = rst.Bookmark
End Sub
The WID number is actually the autonumber. Work_OrderMain is the actual seven digit number I type in the find dialog box.
The query behind the Find box has two columns: WID and Work_OrderMain.
Thanks for any advice. It is greatly appreciated.
Best Regards,
Lisa