T
Tom
I need a bit of help with a small function.
I need to create a dependency (field visible or not)
between 2 fields (both reside on a tab)
FIELDS:
1. TaskerRequired (Yes/No data type)
2. TaskerNumber (Text data type)
I included the IF/THEN/ELSE function into the OnOpen event
of the FORM (below):
&&&&&&&&&&&&&&&&&
If (Me.TaskerRequired) = False Then
Me.TaskerNumber.Visible = False
Me.TaskerNumberLabel.Visible = False
Else
Me.TaskerNumber.Visible = True
Me.TaskerNumberLabel.Visible = True
End If
&&&&&&&&&&&&&&&&&
Some records may have the TaskerRequired field checkmarked
while others do not have a checkmark. If a TaskerRequired
checkbox is checked for a specific record, then I do want
to show the TaskerNumber field (and its label).
If the record does NOT have a check in the TaskerRequired
checkbox, then I do NOT want to show the TaskerNumber
field (and its label).
Currently, however, I either do show or don't show the
field + plus label (REGARDLESS OF THE ACTUAL VALUE/CHECK
FOR EACH RECORD).
Does anyone know how to fix this?
Thanks in advance,
Tom
I need to create a dependency (field visible or not)
between 2 fields (both reside on a tab)
FIELDS:
1. TaskerRequired (Yes/No data type)
2. TaskerNumber (Text data type)
I included the IF/THEN/ELSE function into the OnOpen event
of the FORM (below):
&&&&&&&&&&&&&&&&&
If (Me.TaskerRequired) = False Then
Me.TaskerNumber.Visible = False
Me.TaskerNumberLabel.Visible = False
Else
Me.TaskerNumber.Visible = True
Me.TaskerNumberLabel.Visible = True
End If
&&&&&&&&&&&&&&&&&
Some records may have the TaskerRequired field checkmarked
while others do not have a checkmark. If a TaskerRequired
checkbox is checked for a specific record, then I do want
to show the TaskerNumber field (and its label).
If the record does NOT have a check in the TaskerRequired
checkbox, then I do NOT want to show the TaskerNumber
field (and its label).
Currently, however, I either do show or don't show the
field + plus label (REGARDLESS OF THE ACTUAL VALUE/CHECK
FOR EACH RECORD).
Does anyone know how to fix this?
Thanks in advance,
Tom