On my form, I have a combo box that lists all record identifiers, for easy navigation.
In the combo box
This works well most of the time but sometimes the form ends up on the wrong record.
There does not seem to be any connection between the wrong record and intended record.
It is not a specific identifier that causes this issue either, sometimes an identifier will work and other times it won't.
This is much easier to reproduce on my client's machine than on my own, for some reason (of course!).
I tried simplifying the code to the following but the problem remains:
Does anyone have any idea as to why this might be happening?
In the combo box
AfterUpdate
handler, I execute the following code to navigate to the chosen record.
Code:
Me.RecordsetClone.FindFirst "[id] = " & Me![cmbId]
Me.Bookmark = Me.RecordsetClone.Bookmark
This works well most of the time but sometimes the form ends up on the wrong record.
There does not seem to be any connection between the wrong record and intended record.
It is not a specific identifier that causes this issue either, sometimes an identifier will work and other times it won't.
This is much easier to reproduce on my client's machine than on my own, for some reason (of course!).
I tried simplifying the code to the following but the problem remains:
Code:
Me.Recordset.FindFirst "[id] = " & Me![cmbId]
Does anyone have any idea as to why this might be happening?