G
GD
I'm designing a new form for an existing table. I need to program certain
areas to be visible or invisible, based on a check box or text box within the
form. The problem is that if I use the AfterUpdate event, the existing
records don't act accordingly (since their controls/data were previously
updated). Is there another event I can use that depends on whether or not a
box is empty or filled? Or can I programmatically refer back to the table
field?
Currently my code looks like this:
Private Sub chkPaybackApproved_AfterUpdate()
If Me.chkPaybackApproved = True Then
Me.cboApprBy.Visible = True
Else
Me.cboApprBy.Visible = False
End If
End Sub
Private Sub Form_Current()
If Me.chkPaybackApproved = True Then
Me.cboApprBy.Visible = True
Else
Me.cboApprBy.Visible = False
End If
End Sub
Again, this works fine for new records. But existing ones stay hidden.
Thanks for your time!!
areas to be visible or invisible, based on a check box or text box within the
form. The problem is that if I use the AfterUpdate event, the existing
records don't act accordingly (since their controls/data were previously
updated). Is there another event I can use that depends on whether or not a
box is empty or filled? Or can I programmatically refer back to the table
field?
Currently my code looks like this:
Private Sub chkPaybackApproved_AfterUpdate()
If Me.chkPaybackApproved = True Then
Me.cboApprBy.Visible = True
Else
Me.cboApprBy.Visible = False
End If
End Sub
Private Sub Form_Current()
If Me.chkPaybackApproved = True Then
Me.cboApprBy.Visible = True
Else
Me.cboApprBy.Visible = False
End If
End Sub
Again, this works fine for new records. But existing ones stay hidden.
Thanks for your time!!