Percent problem again

G

Guest

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


Top