Hi,
We have some users who have recently been upgraded to Access 2013 and this has caused a problem with all of our applications on some pretty generic code which allows users to navigate a continuous form with the arrow keys on the keyboard. The code is on the keydown event and is as follows:
Dim LastRec As Long
LastRec = Me.Recordset.RecordCount
If Shift = 0 Then
If KeyCode = vbKeyUp Then
If Me.CurrentRecord > 1 Then Me.Recordset.MovePrevious
KeyCode = 0
ElseIf KeyCode = vbKeyDown Then
If Me.CurrentRecord < LastRec Then Me.Recordset.MoveNext
KeyCode = 0
ElseIf KeyCode = vbKeyF5 Then
Me.Requery
End If
End If
The error is on the movenext method of the recordset and states:
'method movenext of object recordset2 failed.
We have users on 2007 and 2010 Access versions and this code has never been an issue. It is currently affecting 3 different applications we have so any advice would be greatly appreciated! Does anyone know if this is a bug with Access 2013?
Thanks in advance