G
Guest
I have a combo box (Combo8) containing a list of names on a main form
(fSwitchboard) that also has a subform in datasheet view (fJobListSubform)
that lists jobs assigned to each named person in the combo box. The
following is code related to making it work - the problem is it will only
show jobs for just one person in the list. Can someone please tell me what
is wrong? Any help is greatly appreciated!
Private Sub Form_AfterUpdate()
' Find the record that matches the control.
Dim rs As Object
Set rs = Me.Recordset.Clone
rs.FindFirst "[JobNumber] = " &
str(Nz(Forms!Form1!qJobListSubform.Form!JobNumber, 0))
If Not rs.EOF Then Me.Bookmark = rs.Bookmark
End Sub
Private Sub Combo8_AfterUpdate()
Me.qJobListSubform.Requery
End Sub
Thanks, Phisaw
(fSwitchboard) that also has a subform in datasheet view (fJobListSubform)
that lists jobs assigned to each named person in the combo box. The
following is code related to making it work - the problem is it will only
show jobs for just one person in the list. Can someone please tell me what
is wrong? Any help is greatly appreciated!
Private Sub Form_AfterUpdate()
' Find the record that matches the control.
Dim rs As Object
Set rs = Me.Recordset.Clone
rs.FindFirst "[JobNumber] = " &
str(Nz(Forms!Form1!qJobListSubform.Form!JobNumber, 0))
If Not rs.EOF Then Me.Bookmark = rs.Bookmark
End Sub
Private Sub Combo8_AfterUpdate()
Me.qJobListSubform.Requery
End Sub
Thanks, Phisaw