spin button increase by decimal

S

Souris

I have a spin button to use for increase a value in text box by decimal.

The minimum increase is one.
I need synchronize the value user enter.
I have

Screen.ActiveControl.Value = Screen.ActiveControl.Value / 10

on text box exit.

The problem is when user go back in text box will divide one more time.

Are there any workaround for this issue?

Your help is great appreciated,
 
K

Klatuu

Move the code to the After Update event.
The Exit event fires when you leave the control whether a change has been
made or not.
The After Update event fires only when a change has been made to the value
of the control.
 

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