Versions des environnements
Hello, Tariq-
>I have two textboxes, the first is numeric and the later is character type.
>
>Text1.value is 98745184
>
>In text2.value, I want to show this data as
>
>=498,745,184/=
>
>What should I do?
>
>The numeric data could be different every type.
Set the Text2.ControlSource to "Thisform.Text1.Value" (for example, and without the quotes).
Set the Text2.Format property to "R" (without the quotes).
Set the Text2.InputMask to ">=499,999,999/=" (again, without the quotes).
The "R" in the Format property means insert the special characters (the >, =, 4, and /) into the display instead of using up characters spaces from the value. (If that makes sense.) The text2 display will be refreshed when the the first textbox control loses focus.
Depending on how close this fits your needs, you may need to make some adjustments. For example, can the numbers be fewer than 9 digits? If so, post back and we can add some code to the refresh of the text2 to change the input mask to suit the number.
HTH.
Précédent
Répondre
Voir le fil de ce thread
Voir le fil de ce thread à partir de ce message seulement
Voir tous les messages de ce thread
Voir tous les messages de ce thread à partir de ce message seulement