After playing around with it I have added the exp field to the subform. This
is where I enter the percentage. Then in the after update of the of the
Expendable field i have this..
Private Sub Expendable_AfterUpdate()
If Me!Expendable = True Then
Me!UnitPrice = Nz(Me!UnitPrice, 0) * [exp]
Else
Me!UnitPrice = Nz(Me!UnitPrice, 0) / [exp]
End If
End Sub
which gives me the precentage of the unitprice.. but I need the precentage of
the unitprice to be ADDED to the unitprice... how would i do this?
>In my form i have a subform, In the subform I have a check box that when
>checked needs to multiply the UnitPrice by Expendable and when unchecked the
[quoted text clipped - 27 lines]
>
>am i close??
Bob Quintal - 06 Jul 2007 21:14 GMT
> After playing around with it I have added the exp field to the
> subform. This is where I enter the percentage. Then in the
[quoted text clipped - 13 lines]
> the precentage of the unitprice to be ADDED to the
> unitprice... how would i do this?
If Me!Expendable = True Then
Me!UnitPrice = Nz(Me!UnitPrice, 0)+ Nz(Me!UnitPrice, 0) * [exp]
Else
Me!UnitPrice = Nz(Me!UnitPrice, 0)- Nz(Me!UnitPrice, 0) / [exp]
End if

Signature
Bob Quintal
PA is y I've altered my email address.
--
Posted via a free Usenet account from http://www.teranews.com