M
Matt Slattery
I have a standard "Find" routine triggered by the AfterUpdate event on an
Unbound Form Combobox.
Code as follows:
Sub cboGoto_AfterUpdate()
Dim rs as Recordset
Set rs = Me.RecordsetClone
rs.FindFirst "[JobNo] = " & Me.cboGoto
Me.Bookmark = rs.Bookmark
Set rs = Nothing
End Sub
This event has been working perfectly for several months and has suddenly
stopped working in a certain DB. The exact same code runs smoothly in other
DB's without a problem.
Notes:
The field in question is a numeric data type.
The event procedure does actually run, but it always goes to the first
record in the form, rather than to the record it should find.
The numbers in the combobox can always be found in the destination field.
All other routines in the DB run fine
The DB in question is a Front / Back end setup in Access 2000 File Format
All clients are running Access 2003 + WinXP Pro with latest updates / patches
Without solving the problem, I have:
Tried the "combobox wizard" to "Find a record on my form based on the value
I selected in my combobox".
Recreated the combobox and the event code from scratch.
Recompiled the DB.
Imported all objects into a new DB file.
Tried previous DAO Libraries + used both Early and Late binding versions of
the event procedure.
I am at wits end for what would seem to be such a simple problem.
I am VERY curious to see if anybody else has experienced similar problems or
if anybody has any ADODB code to goto a specific record on a form based on a
combobox selection.
My kindest thanks to anybody who can help shed light on this situation
Regards,
Matt Slattery
Unbound Form Combobox.
Code as follows:
Sub cboGoto_AfterUpdate()
Dim rs as Recordset
Set rs = Me.RecordsetClone
rs.FindFirst "[JobNo] = " & Me.cboGoto
Me.Bookmark = rs.Bookmark
Set rs = Nothing
End Sub
This event has been working perfectly for several months and has suddenly
stopped working in a certain DB. The exact same code runs smoothly in other
DB's without a problem.
Notes:
The field in question is a numeric data type.
The event procedure does actually run, but it always goes to the first
record in the form, rather than to the record it should find.
The numbers in the combobox can always be found in the destination field.
All other routines in the DB run fine
The DB in question is a Front / Back end setup in Access 2000 File Format
All clients are running Access 2003 + WinXP Pro with latest updates / patches
Without solving the problem, I have:
Tried the "combobox wizard" to "Find a record on my form based on the value
I selected in my combobox".
Recreated the combobox and the event code from scratch.
Recompiled the DB.
Imported all objects into a new DB file.
Tried previous DAO Libraries + used both Early and Late binding versions of
the event procedure.
I am at wits end for what would seem to be such a simple problem.
I am VERY curious to see if anybody else has experienced similar problems or
if anybody has any ADODB code to goto a specific record on a form based on a
combobox selection.
My kindest thanks to anybody who can help shed light on this situation
Regards,
Matt Slattery