Insert special characters with command button (1 Viewer)

RodShinall

Registered User.
Local time
Yesterday, 23:59
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.
 

jdraw

Super Moderator
Staff member
Local time
Today, 00:59
Joined
Jan 23, 2006
Messages
15,379
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.
 

Galaxiom

Super Moderator
Staff member
Local time
Today, 14:59
Joined
Jan 20, 2009
Messages
12,852
Two useful lines used in the right places.

strKeySymbol = Me!ActiveContol.Tag

Me!textboxname.Text = Me!textboxname.Text + strKeySymbol
 

RodShinall

Registered User.
Local time
Yesterday, 23:59
Joined
Dec 21, 2006
Messages
32
Thanks jdraw and GalaxiomAtHome for your response. I think I've about got this figured out.
 

Users who are viewing this thread

Top Bottom