B
BobRoberts
I'm working with packaged software where the form I'll call frmExample
consists of 2 headers and 2 details, called Header0, Header1, Detail1,
Detail0. The CustomerID field (a combobox) on Detail1 is bound to the
tblCustomer table, and the FinanceChargeAmount field on Detail0 is bound to
the tblInvoice table.
The customer ID is typed in or selected from a drop-down list. What I want
to do is make FinanceChargeAmount.Visable either true or false based on a bit
field in the Invoice table, called FinChgYn. The problem is, there is no
"event" on Detail0 upon which to:
If Me.FinChgYn = False Then
Me.FinanceChargeAmount.Visible = False
End If
There is a property of the CustomerID field on Detail1 called On Change, and
I've confirmed that it fires when the customer ID changes. I put the above
code in the code builder section called "Public Sub CustomerID_Change()".
The problem is it will not recognize that the FinanceChargeAmount field
exists, probably because the event is on Detail1 and the control is on
Detail0.
My question is, how do I reference the FinanceCharge field on Detail0 from
Detail1? Is it possible to do? I have tried various things, such as Detail0.
FinanceChargeAmount, but none of them work.
consists of 2 headers and 2 details, called Header0, Header1, Detail1,
Detail0. The CustomerID field (a combobox) on Detail1 is bound to the
tblCustomer table, and the FinanceChargeAmount field on Detail0 is bound to
the tblInvoice table.
The customer ID is typed in or selected from a drop-down list. What I want
to do is make FinanceChargeAmount.Visable either true or false based on a bit
field in the Invoice table, called FinChgYn. The problem is, there is no
"event" on Detail0 upon which to:
If Me.FinChgYn = False Then
Me.FinanceChargeAmount.Visible = False
End If
There is a property of the CustomerID field on Detail1 called On Change, and
I've confirmed that it fires when the customer ID changes. I put the above
code in the code builder section called "Public Sub CustomerID_Change()".
The problem is it will not recognize that the FinanceChargeAmount field
exists, probably because the event is on Detail1 and the control is on
Detail0.
My question is, how do I reference the FinanceCharge field on Detail0 from
Detail1? Is it possible to do? I have tried various things, such as Detail0.
FinanceChargeAmount, but none of them work.