P
patti
i have a combobox cboFindPatient that finds & displays the record. If the
patient is not in the list, i want the user to add data by using "add new
patient" button. (which works! thanks to the wisdom & kindness of the message
group)
i need to clear out what has been typed in the the cbo , display my message
and reset form. user then just clicks on add button.
I have set Limit to List: yes
these are events associated with cboFindPatient:
Private Sub cboFindPatient_AfterUpdate()
' Find the record that matches the control.
Dim rs As Object
Set rs = Me.Recordset.Clone
rs.FindFirst "[PatientID] = " & Str(Nz(Me![cboFindPatient], 0))
If Not rs.EOF Then Me.Bookmark = rs.Bookmark
End Sub
Private Sub cboFindPatient_NotInList(NewData As String, Response As Integer)
Me.cboFindPatient.Undo
Response = acDataErrContinue
MsgBox "Use Add New Patient Button"
End Sub
i kept getting prompted to select from list.
any help is appreciated.
patti
patient is not in the list, i want the user to add data by using "add new
patient" button. (which works! thanks to the wisdom & kindness of the message
group)
i need to clear out what has been typed in the the cbo , display my message
and reset form. user then just clicks on add button.
I have set Limit to List: yes
these are events associated with cboFindPatient:
Private Sub cboFindPatient_AfterUpdate()
' Find the record that matches the control.
Dim rs As Object
Set rs = Me.Recordset.Clone
rs.FindFirst "[PatientID] = " & Str(Nz(Me![cboFindPatient], 0))
If Not rs.EOF Then Me.Bookmark = rs.Bookmark
End Sub
Private Sub cboFindPatient_NotInList(NewData As String, Response As Integer)
Me.cboFindPatient.Undo
Response = acDataErrContinue
MsgBox "Use Add New Patient Button"
End Sub
i kept getting prompted to select from list.
any help is appreciated.
patti