How can I set a text boxt value to a Wingdings character code

E

efandango

I want to be able to set a text box value to a Msoft Windings front (which is
an Arrow symbol). The code for the symbol in the MSoft Character Map utilty
is 0xE9. How can I implement this character code in my code sample below, so
that instead of txt_Direction_box = Up, it becomes txt_Direction_box = 'Arrow
Symbol'


If Me.txt_Answer = North) Then
txt_Direction_box = Up
End
 
J

Jeff Boyce

Take a look at setting a font for a control. That text box value could
be/is whatever key gives you that particular WindDing character.


Regards

Jeff Boyce
Microsoft Office/Access MVP
 
F

fredg

I want to be able to set a text box value to a Msoft Windings front (which is
an Arrow symbol). The code for the symbol in the MSoft Character Map utilty
is 0xE9. How can I implement this character code in my code sample below, so
that instead of txt_Direction_box = Up, it becomes txt_Direction_box = 'Arrow
Symbol'

If Me.txt_Answer = North) Then
txt_Direction_box = Up
End

First set the control's Font to Wingdings.

If Me.txt_Answer = "North" Then
txt_Direction_box = chr(233)
Else
txt_Direction_box = .....what ?.....
End If

To find the Ascii value of a character, select and copy the character
from the Character Map grid.
Open Access.
Click Ctrl + G
When the debug editor opens, write:
? Asc("paste the copied character here")
Because the editor is not using Wingdings, the above will appear as
? Asc("é")
The value appears under the above line.
233

When you use Wingdings, the displayed character will be the wingdings
arrow up.
 
E

efandango

Fred,

Thanks for replying with your advice. It worked a treat, much appreciated.

regards

Eric
 

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