ROUNDING OFF VALUES IN A CONTROL

1

123

Hi there,
Please help. We are stuck. We would like to know how to round off the value
of a control to the nearest dollar not only in display but also in value.
Please note that the value has to be rounded off that is if we are
calculating that total with another value, it should account the rounded off
value and not the original value.

TIA.
 
N

Nikos Yannacopoulos

In form design, select your control, properties, events
tab, On change event: macro with action SetValue,
arguments:
Item [control]
Expression =Round([control])

where control = the actual name of your control.

HTH,
Nikos
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top