G
GD
How would I specify in the code below that I want the action to be performed
at the record level, not the form as a whole? In other words, I need
cboApprBy to be visible if chkPaybackApproved is checked within that record.
As it stands, if I check that box for any record, cboApprBy becomes visible
for all records.
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
Problem #2: The form I'm designing is bound to an older table, so using the
AfterUpdate event is apparently not what I want to use for the above
function. This is because I need for cboApprBy to appear if
chkPaybackApproved is true for the older records, too. But since there is no
updating involved, it doesn't appear unless unchecked and checked again. Is
there another event I can use that depends solely on the true/false value of
chkPaybackApproved? Should I be entering it into Form_Current only?
Thanks!!!!
at the record level, not the form as a whole? In other words, I need
cboApprBy to be visible if chkPaybackApproved is checked within that record.
As it stands, if I check that box for any record, cboApprBy becomes visible
for all records.
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
Problem #2: The form I'm designing is bound to an older table, so using the
AfterUpdate event is apparently not what I want to use for the above
function. This is because I need for cboApprBy to appear if
chkPaybackApproved is true for the older records, too. But since there is no
updating involved, it doesn't appear unless unchecked and checked again. Is
there another event I can use that depends solely on the true/false value of
chkPaybackApproved? Should I be entering it into Form_Current only?
Thanks!!!!