Dim SyncCriteria As String
Dim f As Form, rs As Recordset
'Define the from object and recordset object for the AutoCAD form
Set f = Forms(Screen.ActiveForm.FormName)
Set rs = f.RecordsetClone
' define the criteria used for the sync
SyncCriteria = "[ProjectNumber]='" & Me![Combo2] & "'"
' find the corresponding record in the Parts table
rs.Find SyncCriteria
f.Bookmark = rs.Bookmark
-----------------------
I have used this forever and it works great if I use DAO.
but in Access 2000 and beyond ADO is the default.
Two stubling blocks come up "Recordsetclone" gives error
Set rs = f.RecordsetClone <<<< Error "Type mismatch"
and there is a problem on the last two lines
rs.Find SyncCriteria
f.Bookmark = rs.Bookmark
Any ideas
TIA
DougP, MCP, A+
Dim f As Form, rs As Recordset
'Define the from object and recordset object for the AutoCAD form
Set f = Forms(Screen.ActiveForm.FormName)
Set rs = f.RecordsetClone
' define the criteria used for the sync
SyncCriteria = "[ProjectNumber]='" & Me![Combo2] & "'"
' find the corresponding record in the Parts table
rs.Find SyncCriteria
f.Bookmark = rs.Bookmark
-----------------------
I have used this forever and it works great if I use DAO.
but in Access 2000 and beyond ADO is the default.
Two stubling blocks come up "Recordsetclone" gives error
Set rs = f.RecordsetClone <<<< Error "Type mismatch"
and there is a problem on the last two lines
rs.Find SyncCriteria
f.Bookmark = rs.Bookmark
Any ideas
TIA
DougP, MCP, A+