I am getting a random warning Error 3159, Not a valid bookmark when I click on a list to select a record.
The form is a PopUp and the main form is bound to a table.
It's doing it occasionally on opening the database, making it difficult to step through. It gives the error on tha last line above.
The form is a PopUp and the main form is bound to a table.
Code:
Dim db As DAO.Database
Dim MySql As String
Dim rs1 As DAO.Recordset
Set db = CurrentDb()
Set rs1 = db.OpenRecordset("MAIN", dbOpenDynaset)
rs1.MoveFirst
rs1.FindFirst "ID1 =" & List0.Column(0) & ""
PK1 = Me.List0.Column(0)
Forms![Mainform].Bookmark = rs1.Bookmark
It's doing it occasionally on opening the database, making it difficult to step through. It gives the error on tha last line above.