Copy Character to text box

  • Thread starter Thread starter Guest
  • Start date Start date
G

Guest

Hi

How would I insert a character in a text field by using a command button?

For eg: I have set each command button to a special character and I would
like the user to be able to click the button and for it to paste that special
character into the current tect field?

TIA
 
Edgar said:
How would I insert a character in a text field by using a command button?

For eg: I have set each command button to a special character and I would
like the user to be able to click the button and for it to paste that special
character into the current tect field?


Paste it where in the text box?

To paste it at the end of the text box's value, use
something like:

Me.textbox = Me.textbox & 'x'

where x is the character you want appended.

If the character you want to paste is not a keyboard
available character, then use:

Me.textbox = Me.textbox & Chr(charcode)
 
Back
Top