Wondering if anybody has seen a similar error.
I upsized an Access2000 database to an SQL Server Express backend, tables in the front-end have an ODBC link.
There is code in the search screen to move to a particular record on the main screen:
What I am finding is that on the main form it is often on the wrong record. It seems to happen more often on the newer records.
I have noticed that it always seems to be offset by the same amount, by -26511, from the primary key it is supposed to be on. For example, if it is supposed to be on the record where [Student ID] = 44813, it ends up on the record with [Student ID] = 18302.
This happens if I run the front-end on Access2000, but not on Access2003. Unfortunately my client has Office2000.
I upsized an Access2000 database to an SQL Server Express backend, tables in the front-end have an ODBC link.
There is code in the search screen to move to a particular record on the main screen:
Code:
On Error Resume Next
Dim Findval As String
Findval = Me.Student_ID.Value
DoCmd.Close
DoCmd.OpenForm "frmmainstudentpersonaldata"
Forms!frmMainStudentPersonalData.RecordsetClone.FindFirst "[student id] = " & Findval
Forms!frmMainStudentPersonalData.Bookmark = Forms!frmMainStudentPersonalData.RecordsetClone.Bookmark
I have noticed that it always seems to be offset by the same amount, by -26511, from the primary key it is supposed to be on. For example, if it is supposed to be on the record where [Student ID] = 44813, it ends up on the record with [Student ID] = 18302.
This happens if I run the front-end on Access2000, but not on Access2003. Unfortunately my client has Office2000.