you can only have the subforms work 1 way,
either link the subtable to the cashier, or to the date.
you wouldnt even NEED a subform. This would eliminate the subform errors you mentioned.
Instead use a continuous form with all records, with combo boxes on the form header.
pick a date to filter the records on the date.
pick a cashier to filter the records on the cashier.
build the 'where' clause by cycling thru all the controls....
it executes afterupdate event
if null, ignore.
if not, apply.
Code:
sub cboDate_Afterupdate()
FilterRecs
end sub
sub cboCashier_Afterupdate()
FilterRecs
end sub
'----------------
sub FilterRecs()
'----------------
dim sWhere as string
sWhere = "1=1"
if not IsNUll(cboDate) then sWhere = sWhere & " and [Date]=#" & cboDate & "#"
if not IsNUll(cboCashier) then sWhere = sWhere & " and [Cashier]='" & cboCashier & "'"
If sWhere = "1=1" Then
Me.FilterOn = False
Else
Me.Filter = sWhere
Me.FilterOn = True
End If
end sub