Hi there,
I used the code below on an access form (mdb database) and it worked very well. I've since moved the back end to SQL Server and the code no longer works. The code is on On Enter, the status bar on the form says its calculating but the record is not found.
Does anyone know why this would stop working when moved to an adp?
Dim rs As Object
'Searches for ID entered into ID Search textbox
' Set rs = Me.Recordset.Clone
Set rs = Me.Recordset.Clone
rs.FindFirst "[unique ID] = " & Str(Nz([sfrmDataEntrySummaryView]![Outlook ID], 0))
If rs.NoMatch Then
msgbox "No Project Found", vbOKOnly, "Installation Outlook"
Else
Me.Bookmark = rs.Bookmark
Thanks
I used the code below on an access form (mdb database) and it worked very well. I've since moved the back end to SQL Server and the code no longer works. The code is on On Enter, the status bar on the form says its calculating but the record is not found.
Does anyone know why this would stop working when moved to an adp?
Dim rs As Object
'Searches for ID entered into ID Search textbox
' Set rs = Me.Recordset.Clone
Set rs = Me.Recordset.Clone
rs.FindFirst "[unique ID] = " & Str(Nz([sfrmDataEntrySummaryView]![Outlook ID], 0))
If rs.NoMatch Then
msgbox "No Project Found", vbOKOnly, "Installation Outlook"
Else
Me.Bookmark = rs.Bookmark
Thanks