Hello all,
I have the following code running and keep getting the above error. all looks fine to me . can somebody please help?
Private Sub cmdShowRecord_Click()
Dim rs As DAO.Recordset
Set rs = Forms!frmSAHCarerdetails.RecordsetClone
Call rs.FindFirst("SAHCarerReferenceNumber=" & Me.lstSelectRecord.Value)
Forms!frmSAHCarerdetails.Recordset.Bookmark = rs.Bookmark
Call DoCmd.Close(acForm, "frmSelectRecord")
End Sub
frmSAHCarerdetails is the form I want to go to when a record from lstSelectRecord is selected.
many thanks
I have the following code running and keep getting the above error. all looks fine to me . can somebody please help?
Private Sub cmdShowRecord_Click()
Dim rs As DAO.Recordset
Set rs = Forms!frmSAHCarerdetails.RecordsetClone
Call rs.FindFirst("SAHCarerReferenceNumber=" & Me.lstSelectRecord.Value)
Forms!frmSAHCarerdetails.Recordset.Bookmark = rs.Bookmark
Call DoCmd.Close(acForm, "frmSelectRecord")
End Sub
frmSAHCarerdetails is the form I want to go to when a record from lstSelectRecord is selected.
many thanks