Fizzio
Chief Torturer
- Local time
- Today, 10:59
- Joined
- Feb 21, 2002
- Messages
- 1,884
scouser - Liverpool were truly awful today - thet have not fired on all cylinders at all this season - Monsieur Houllier is in for a rough ride!....
Anyway, your two code snippets seem to conflict with each other. On one hand (Form_Current) you are setting the OrderClosed value according to the value of the TotalGross and OrderBalance.
On the other hand (OrderClosed_AfterUpdate), you are allowing the OrderClosed value to be changed manually (but then calling Form_Current changes it to whatever condition is met with If .TotalGross >= "0.00" And .OrderBalance <= "0.00" Then
Do you really want both? If so, do not call the Form_Current event, format the controls from your After_Update code. But bear in mind, the next time you visit that record, the value of OrderClosed will be set by the condition mentioned before! Food for thought?
Anyway, your two code snippets seem to conflict with each other. On one hand (Form_Current) you are setting the OrderClosed value according to the value of the TotalGross and OrderBalance.
On the other hand (OrderClosed_AfterUpdate), you are allowing the OrderClosed value to be changed manually (but then calling Form_Current changes it to whatever condition is met with If .TotalGross >= "0.00" And .OrderBalance <= "0.00" Then
Do you really want both? If so, do not call the Form_Current event, format the controls from your After_Update code. But bear in mind, the next time you visit that record, the value of OrderClosed will be set by the condition mentioned before! Food for thought?