The problem I encounter now is that I can't use the list box to select any records. The other issue is when I find an error I do want to direct the cursor to the field in error.
Thank you Remou for your reply.
I tried the code and receive the following error: Run-time error '2108' You must save the field before you execute the GoToControl action, the GoToControl method, or the SetFocus method.
The List box is unbound and the code is this:
Private Sub List61_AfterUpdate()
' Find the record that matches the control.
Dim rs As Object
Set rs = Me.Recordset.Clone
rs.FindFirst "[MachineID] = '" & Me![List61] & "'"
If Not rs.EOF Then Me.Bookmark = rs.Bookmark
End Sub...
I am new, so I apologize in advance. I have a form that uses a list box for record selection. Once the form is modified I check data for validity using a macro in the AfterUpdate section of the form. The problem I have is the macro fires and checks the data and if invalid displays my message...
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.