Insert special character in a field with the press of a button

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

Guest

Good day,

Is there a way to create a button on a form that can paste a predefined
character in a field where the cursor is?

In other words... I need the user to be able to place the cursor in a field
on the form and then press a button to insert a specific character in that
field... Is this possible?

Thank you.

Einy.
 
It may depend on the character. If the character is in the character map and
has an assigned keyboard shortcut (for instance, Alt + 0169 produces ©) you
could have the Click event for the command button be Me.MyField = "©". You
could probably create a shortcut for a character that does not already have
one, or copy a character from the character map to the code window. I
haven't checked all of the options. However, it makes no sense to say that
you want to click a button to place a character in a field where the cursor
is, since the act of clicking the button will move the cursor.
 
Thanks Bruce... you gave me an idea... The charachter is actually a check
mark from the Wingdings font... My users are not very bright and I need to
make data input as easy as possible.... the reason i need this character is
for merge with Publisher catalogue for print out... a long story... but
thanks anyway...

Einy.
 
Just pointing out something you may already know: that only one font can be
used in a control. You can't combine wingdings with another font.
 
I don't need to... I only need the character (the ansi code, or any other
code)... the font will be used in publisher to display the correct character!

Thanks.
 
Back
Top