D
Derek Brown
Hi all
I have a combobox on a main form that selects the correct customer record on
the main form. The combo also lists all appointments for each customer that
are individualy shown in a subform. Is it possible to have the combobox
first select the main form record and then use the second column of the
combo to automatically navigate the subform to the correct subform record. I
have tried the following
Dim rs As Object
Set rs = Me.Recordset.Clone
rs.FindFirst "[Account Code] = " & Str(Nz(Me![Combo101], 0))
rs.FindFirst "[AppointmentsForm].Form![AppointmentNumber] = " &
Str(Nz(Me![Combo101], 1))
If Not rs.EOF Then Me.Bookmark = rs.Bookmark
You can see I am punching in the dark here. when I run this I get message
"access does not recognise [AppointmentsForm].Form![AppointmentNumber]"
although Im sure if it did there would be further problems. Any help
available?
I have a combobox on a main form that selects the correct customer record on
the main form. The combo also lists all appointments for each customer that
are individualy shown in a subform. Is it possible to have the combobox
first select the main form record and then use the second column of the
combo to automatically navigate the subform to the correct subform record. I
have tried the following
Dim rs As Object
Set rs = Me.Recordset.Clone
rs.FindFirst "[Account Code] = " & Str(Nz(Me![Combo101], 0))
rs.FindFirst "[AppointmentsForm].Form![AppointmentNumber] = " &
Str(Nz(Me![Combo101], 1))
If Not rs.EOF Then Me.Bookmark = rs.Bookmark
You can see I am punching in the dark here. when I run this I get message
"access does not recognise [AppointmentsForm].Form![AppointmentNumber]"
although Im sure if it did there would be further problems. Any help
available?