Hi,
Still rather new to visual basic and I had the following working for a bit but it has stopped now and I dont understand what has changed (nothing from what i have done besides aesthetics of the form) or what has gone wrong.
Have a multi-page form with a combobox control called findpatientname in the form footer which looks up a patient register table - i want this to show the record selected from the control on the various pages using HospitalNo as a means of selecting a patient
Any thoughts as to what I could look in to as to why it no longer works?
Many thanks
Still rather new to visual basic and I had the following working for a bit but it has stopped now and I dont understand what has changed (nothing from what i have done besides aesthetics of the form) or what has gone wrong.
Code:
Private Sub findpatientname_AfterUpdate()
' Find the record that matches the control.
Dim rs As Object
Set rs = Me.Recordset.Clone
rs.FindFirst "[HospitalNo] = '" & Me![findpatientname] & "'"
If Not rs.EOF Then Me.Bookmark = rs.Bookmark
End Sub
Have a multi-page form with a combobox control called findpatientname in the form footer which looks up a patient register table - i want this to show the record selected from the control on the various pages using HospitalNo as a means of selecting a patient
Any thoughts as to what I could look in to as to why it no longer works?
Many thanks