G
Guest
I have a unbound ck box that turns off my supplier code field if the code is
NOT the correct code that time for the item. The person would then enter the
code in the description field. I need the surpressed code to NOT print on the
report. This is in a subform and the problems are:
1) it is not just turning off supplier code in only 1 record it is turning
of all records in the subform. (I need each record to have the choice do I
need to make it bound instead since it is a continuous form)
2) How do I code the criteria in the VBA to SHOW "nothing" on the report if
the box is checked? (at this time when I clk my report button I still see the
supplier code field)
Code:
Private Sub ckCodeOFF_AfterUpdate()
If Me.ckCodeOFF = True Then
Me.SupplierCode.Enabled = False
Me.SupplierCode.Visible = False
Else
Me.SupplierCode.Enabled = True
Me.SupplierCode.Visible = True
End If
End Sub
---
Above code also in child not in parent.
Private Sub Form_Current()
THANKS!
NOT the correct code that time for the item. The person would then enter the
code in the description field. I need the surpressed code to NOT print on the
report. This is in a subform and the problems are:
1) it is not just turning off supplier code in only 1 record it is turning
of all records in the subform. (I need each record to have the choice do I
need to make it bound instead since it is a continuous form)
2) How do I code the criteria in the VBA to SHOW "nothing" on the report if
the box is checked? (at this time when I clk my report button I still see the
supplier code field)
Code:
Private Sub ckCodeOFF_AfterUpdate()
If Me.ckCodeOFF = True Then
Me.SupplierCode.Enabled = False
Me.SupplierCode.Visible = False
Else
Me.SupplierCode.Enabled = True
Me.SupplierCode.Visible = True
End If
End Sub
---
Above code also in child not in parent.
Private Sub Form_Current()
THANKS!