G
Guest
This is a small form that is based on a small table of ck boxes for events.
The target field is not on the table it is unbound with a calculated date
field. I want the date field to disappear when the box is checked. and it
works with the first line. I just don't know how to add the additional lines.
And I have four other tables that are the same principle and so I thought
maybe there was some other way to do the job. Would you tell me how to
combine the additional fields.
---------code-------------
Private Sub Form_Current()
If Me.CompleteCO = True Then
'Me.CompleteDB = True Then
'Me.CompleteP = True Then
'Me.CompleteDS = True Then
'Me.CompleteB = True Then
'Me.CompleteS = True Then
Me.ColorTarget.Visible = False
'Me.DBTarget.Visible = False
'Me.PTarget.Visible = False
'Me.DSTarget.Visible = False
'Me.BTarget.Visible = False
'Me.STarget.Visible = False
End If
If Me.CompleteCO = False Then
Me.ColorTarget.Visible = True
'repeat above
End If
End Sub
The target field is not on the table it is unbound with a calculated date
field. I want the date field to disappear when the box is checked. and it
works with the first line. I just don't know how to add the additional lines.
And I have four other tables that are the same principle and so I thought
maybe there was some other way to do the job. Would you tell me how to
combine the additional fields.
---------code-------------
Private Sub Form_Current()
If Me.CompleteCO = True Then
'Me.CompleteDB = True Then
'Me.CompleteP = True Then
'Me.CompleteDS = True Then
'Me.CompleteB = True Then
'Me.CompleteS = True Then
Me.ColorTarget.Visible = False
'Me.DBTarget.Visible = False
'Me.PTarget.Visible = False
'Me.DSTarget.Visible = False
'Me.BTarget.Visible = False
'Me.STarget.Visible = False
End If
If Me.CompleteCO = False Then
Me.ColorTarget.Visible = True
'repeat above
End If
End Sub