format condition

hziggy

New member
Local time
Today, 20:44
Joined
Feb 4, 2003
Messages
6
I have a field amount that is currency. I also have a combo box with the coice of To or From. If the user selects "From" I need the amount the user enters to be negative. Sounds so simple??????????
 
hziggy,

Put this in the AfterUpdate event of your amount field:

If Me.cboToFrom = "From" And Me.Amount < 0 Then
Me.Amount = Me.Amount * -1
End If

You'll have to change the names ...

Wayne
 

Users who are viewing this thread

Back
Top Bottom