H
Humbled Learner
I created a form with a combo box (names)
The form has a suboform, (orders subform)
When I select a name from the form, the subform reports only those rows
attached to that name.
My problem is... when you open the form and the combo box is blank, but the
subform shows all rows attached to the first name.
Can I make the subform blank until a name is chosen, or can I have the
subform show all rows until a name is chosen.
The combo box reflects:
After Update:
Option Compare Database
Private Sub Combo4_AfterUpdate()
' Find the record that matches the control.
Dim rs As Object
Set rs = Me.Recordset.Clone
rs.FindFirst "[NameID] = " & Str(Nz(Me![Combo4], 0))
If Not rs.EOF Then Me.Bookmark = rs.Bookmark
End Sub
Thank You
The form has a suboform, (orders subform)
When I select a name from the form, the subform reports only those rows
attached to that name.
My problem is... when you open the form and the combo box is blank, but the
subform shows all rows attached to the first name.
Can I make the subform blank until a name is chosen, or can I have the
subform show all rows until a name is chosen.
The combo box reflects:
After Update:
Option Compare Database
Private Sub Combo4_AfterUpdate()
' Find the record that matches the control.
Dim rs As Object
Set rs = Me.Recordset.Clone
rs.FindFirst "[NameID] = " & Str(Nz(Me![Combo4], 0))
If Not rs.EOF Then Me.Bookmark = rs.Bookmark
End Sub
Thank You