Hi can anyone help me with this? It doesn't return anything. The currentpatient is a global integer variable. The PatientID field is also a number. I don't understand why this doesn't show the currentpatient's record. Can anybody help, please?
Private Sub Form_Load()
Dim rs As DAO.Recordset
Set rs = Me.Recordset.Clone
rs.FindFirst "[PatientID] =" & CurrentPatient & ""
If rs.NoMatch Then
MsgBox ("error"
Else
Me.Bookmark = rs.Bookmark
End If
End Sub
Private Sub Form_Load()
Dim rs As DAO.Recordset
Set rs = Me.Recordset.Clone
rs.FindFirst "[PatientID] =" & CurrentPatient & ""
If rs.NoMatch Then
MsgBox ("error"
Else
Me.Bookmark = rs.Bookmark
End If
End Sub