idavis1900
Technical User
- Dec 17, 2008
- 18
I have this code on a form, the me![percent] has a iff statment which is:
=([expenseItemAmount]-nz([ded],0))*IIf([ExpenseCategoryID]=3,0.5,0.8)
then I have this code on the form:
Private Sub Form_BeforeUpdate(Cancel As Integer)
Me![ckamount] = Me![Percent]
Me![OONAmount] = IIf([OON] = -1, [ckamount], 0)
Me![RemAmount] = IIf([Rem] = -1, [ckamount], 0)
I'm getting a error
run-time 2465 can't find the field [percent] referred in your expression.
But I have also have gotten compile error variable not defined on the me![oonamount].
Any help will be appreciated.
=([expenseItemAmount]-nz([ded],0))*IIf([ExpenseCategoryID]=3,0.5,0.8)
then I have this code on the form:
Private Sub Form_BeforeUpdate(Cancel As Integer)
Me![ckamount] = Me![Percent]
Me![OONAmount] = IIf([OON] = -1, [ckamount], 0)
Me![RemAmount] = IIf([Rem] = -1, [ckamount], 0)
I'm getting a error
run-time 2465 can't find the field [percent] referred in your expression.
But I have also have gotten compile error variable not defined on the me![oonamount].
Any help will be appreciated.