Hello
Please can someone tell me what is wrong with this code.
Dim intApplicant As Integer
intApplicant = DLookup("[ApplicantID]", "tblMedicalClearance", "[ApplicantID] = " & Me.ApplicantID & " And [PostNumber] = " & Me.PostNumber) = Me.ApplicantID
the bold code generates the following error message There is a problem accessing a property or method of the OLE object
Please can someone tell me what is wrong with this code.
Dim intApplicant As Integer
intApplicant = DLookup("[ApplicantID]", "tblMedicalClearance", "[ApplicantID] = " & Me.ApplicantID & " And [PostNumber] = " & Me.PostNumber) = Me.ApplicantID
the bold code generates the following error message There is a problem accessing a property or method of the OLE object