Percent problem again

T

TomH

Percent problem again
Hi
I have a form with a percent field. Percent is number and double in the table.
To show the actual percent, I put this code in the event AfterUpdate:
Percent.Value = Percent.Value / 100
This is working when I write new numbers in the field, but when I put the
cursor in the field and edit an existing percent the result is wrong.
Exampel: edit 4 to 5 in 34% ends up with 0,35% when enter.

This little problem drives me crazy. Is there anyone please, who have a
solution?
 
S

SusanV

Instead of changing the data, change the Format property of the field to
Percent in the table.
 

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

Similar Threads

Percent problem again 7
Format a Percent 4
Percent Help 2
Percent Format 10% shows 1000% 10
Format a percent 7
Weighted % Complete calculation 1
Formatting a percent field 1
Format a percent field 1

Top