G
Guest
I have a checkbox called CRMEM on a subform located on the main form
frmInvoice. On another subform (sbfInvoice) I have a calculation in a
textbox (txtTtlChrgs). When this calculation is less than zero, I would like
the CRMEM checkbox to appear as checked. I've referenced it in the On
Current event of the subform sbfInvoice as
Forms.frmInvoice.sbfInvoice.Form.txtTtlChrgs, but I keep getting an invalid
reference message. What am I doing wrong? The code I'm using looks like
this:
Private Sub Form_Current()
Dim Response As Variant
If Forms.frmInvoice.sbfInvoice.Form.txtTtlChrgs < 0 Then
Me.CRMEM = -1
End If
End sub
frmInvoice. On another subform (sbfInvoice) I have a calculation in a
textbox (txtTtlChrgs). When this calculation is less than zero, I would like
the CRMEM checkbox to appear as checked. I've referenced it in the On
Current event of the subform sbfInvoice as
Forms.frmInvoice.sbfInvoice.Form.txtTtlChrgs, but I keep getting an invalid
reference message. What am I doing wrong? The code I'm using looks like
this:
Private Sub Form_Current()
Dim Response As Variant
If Forms.frmInvoice.sbfInvoice.Form.txtTtlChrgs < 0 Then
Me.CRMEM = -1
End If
End sub