M
mattc66 via AccessMonster.com
I have a main form and subform. I have a check box (unbound) on my main form.
When the user checks this box I want it to only show records in the subform
that dont have a check in the "DONE" box. The blow IF shows the records that
have a check box if ckNotCkd is = -1 and all records show if the ckNotCkd is
= 0. The subform is based on a query and is a Datasheet form.
If Me.ckNotCkd = -1 Then
Me.frmICSTOCK.LinkMasterFields = "ckNotCkd"
Me.frmICSTOCK.LinkChildFields = "Done"
End If
If Me.ckNotCkd = 0 Then
Me.frmICSTOCK.LinkMasterFields = ""
Me.frmICSTOCK.LinkChildFields = ""
End If
When the user checks this box I want it to only show records in the subform
that dont have a check in the "DONE" box. The blow IF shows the records that
have a check box if ckNotCkd is = -1 and all records show if the ckNotCkd is
= 0. The subform is based on a query and is a Datasheet form.
If Me.ckNotCkd = -1 Then
Me.frmICSTOCK.LinkMasterFields = "ckNotCkd"
Me.frmICSTOCK.LinkChildFields = "Done"
End If
If Me.ckNotCkd = 0 Then
Me.frmICSTOCK.LinkMasterFields = ""
Me.frmICSTOCK.LinkChildFields = ""
End If