Copy Character to text box

E

Edgar Thoemmes

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
 
M

Marshall Barton

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)
 

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