Expand|Select|Wrap|Line Numbers
- Private Sub HistoryID_Exit(Cancel As Integer)
- If IsNull(Me.PatientIDPicker) Then
- MsgBox "Sorry...!" & vbCrLf & "You can not enter data directly into 'Basic History Examination Form'" & vbCrLf & "Please " & _
- "close form and attempt data entry through 'Patient Biodata Form'", vbInformation, "Wrong Data Entry Attempt"
- Form.DataEntry = False
- Exit Sub
In this code "PatientIDPicker is an unbound field on form that gets automatically with 'patientID' value when form is opened in a normal way. e.g through Patient Biodata form.
I am unable to figure out that where there is a problem..
Is there anybody to help me out