Hi Karyl,
You can add a "Rule" to the text box in the table as follows:
- Open your InfoPath solution in Design View
- Right-click on the text box in the Repeating Table and choose Properties
- On the Data tab click Rules
- Click Add
- Click the Set Condition button
- In the first box select the field we are working on
- In the second box select "Is greater than or equal to"
- In the third box select "Type a Number" and then enter 0
- Click OK
- Click Add Action
- From the Action box select Set a Field's Value
- Click the button next to Field, drill down through the groups to select
the field we are working on and click OK
- Click the button next to Value, drill down through the groups to select
the field we are working on, click OK but then also add the following: * -1
- Click OK to get back to your form
- Preview and test - if you enter a positive number > 0, it should now be
changed to a negative value!
I hope this helps...
Scott L. Heim
Microsoft Developer Support
This posting is provided "AS IS" with no warranties, and confers no rights.