I’m helping a friend convert an Access back-end database into a SQL Server back-end. We are testing some of the Access commands on the front-end and are fixing errors as we find them. One bit of coding I can’t seem to figure out is this bit:
‘ This code uses the After Update event of a drop-down named: cboLName to find a specific customer
Me.cboLName.Requery
‘ The following code looks for the last name in the field CustomerLName and goes to that record.
Me.RecordsetClone.FindFirst “[CustomerLName] ” & Me.cboLName
Me.Bookmark = Me.RecordsetClone.Bookmark
It functions perfectly in Access but pulls up incorrect names using SQL and an ODBC connection. Does anyone know the proper coding or why it doesn’t function with a SQL back-end?
Thanks!!