R
rpbsr
I have a main form (Members) and a subform (CourseRegistration). A query
computes a discount based on Income and PeopleNumber using tblDiscounts.
PeopleNumber and Income are fields in tblMembers. The following expression
works to output the discount to a textbox in the Members form:
=DLookUp("DiscountAmt","qryDiscounts","PeopleNumber=" & [PeopleNumber] & "
And " & [Income] & "<[MaxIncome]")
I would like to have the discount appear in the subform instead. I have
tried an expression I read somewhere to move it:
[Members].Form![Discount]
But this returns a #Name? error. I want to have the discount appear in the
subform and to use it to compute the actual cost.
Any help will be appreciated.
computes a discount based on Income and PeopleNumber using tblDiscounts.
PeopleNumber and Income are fields in tblMembers. The following expression
works to output the discount to a textbox in the Members form:
=DLookUp("DiscountAmt","qryDiscounts","PeopleNumber=" & [PeopleNumber] & "
And " & [Income] & "<[MaxIncome]")
I would like to have the discount appear in the subform instead. I have
tried an expression I read somewhere to move it:
[Members].Form![Discount]
But this returns a #Name? error. I want to have the discount appear in the
subform and to use it to compute the actual cost.
Any help will be appreciated.