S
stephendeloach via AccessMonster.com
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
UnitPrice needs to return to original price. As of now this is the
AfterUpdate command..
Private Sub Expendable_AfterUpdate()
If Me!Expendable = True Then
Me!UnitPrice = Nz(Me!UnitPrice, 0) * 1.1
Else
Me!UnitPrice = Nz(Me!UnitPrice, 0) / 1.1
End If
End Sub
I need to change it because sometimes the expandable will be more than 10%. I
have added an Expendables field in the main form (Table1). I would think this
would be what I am looking for but i really dont have a clue what I am doing!.
..
Private Sub Expendable_AfterUpdate()
If Me!Expendable = True Then
Me!UnitPrice = Nz(Me!UnitPrice, 0) * [Expendable]
Else
Me!UnitPrice = Nz(Me!UnitPrice, 0) / [Expendable]
End If
End Sub
am i close??
checked needs to multiply the UnitPrice by Expendable and when unchecked the
UnitPrice needs to return to original price. As of now this is the
AfterUpdate command..
Private Sub Expendable_AfterUpdate()
If Me!Expendable = True Then
Me!UnitPrice = Nz(Me!UnitPrice, 0) * 1.1
Else
Me!UnitPrice = Nz(Me!UnitPrice, 0) / 1.1
End If
End Sub
I need to change it because sometimes the expandable will be more than 10%. I
have added an Expendables field in the main form (Table1). I would think this
would be what I am looking for but i really dont have a clue what I am doing!.
..
Private Sub Expendable_AfterUpdate()
If Me!Expendable = True Then
Me!UnitPrice = Nz(Me!UnitPrice, 0) * [Expendable]
Else
Me!UnitPrice = Nz(Me!UnitPrice, 0) / [Expendable]
End If
End Sub
am i close??