Insert special characters with command button

RodShinall

Registered User.
Local time
Today, 01:10
Joined
Dec 21, 2006
Messages
32
I often use a few special characters when entering data, characters not found on the keyboard and that cannot be entered by the Alt+keystroke method. At present I use the Windows Character Map to copy and paste them, but this is inefficient. I want to create small command buttons for each special charcter that, when clicked, will insert the character at any point in the text string I am entering. Is this possible and if so how would I write the event procedure code. Any help would be appreciated.
 
Off the top of my head it sounds like a series of buttons
eg btnSpecialChar1, btnSpecialChar2...
in the On Click event you define a string representing the special char, then append the special char to the field involved.

You know the logic involved so there may be more than an append.
How do you know which field to insert the special char into?

Hope this helps.
 
Two useful lines used in the right places.

strKeySymbol = Me!ActiveContol.Tag

Me!textboxname.Text = Me!textboxname.Text + strKeySymbol
 
Thanks jdraw and GalaxiomAtHome for your response. I think I've about got this figured out.
 

Users who are viewing this thread

Back
Top Bottom