Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

How To Get "?" to Print 2

Status
Not open for further replies.

SmokeEater

Technical User
Feb 14, 2002
90
CA
I am trying to get the ? character to print. In my code I am using Chr(192) and I get the ? character as a result. What am I doing wrong?
 
So, you want to print ? and you get ? ?
Sorry to be so dense, but I don't see the issue here ...

FYI, ? is Chr(63) and feel free to use the "Preview Post" button.

Hope This Helps, PH.
Want to get great answers to your Tek-Tips questions? Have a look at FAQ219-2884 or FAQ181-2886
 
I see how you could have trouble understanding my problem, when my post changes after I previewed it!! I am trying to get what is Chr(192) on the ASCII charts or unicode 2514 on the windows character map to print on my Access report. The information is being generated from a function. The function only wants to return "?". Any Ideas?
 
You may consider the ChrW function.

Hope This Helps, PH.
Want to get great answers to your Tek-Tips questions? Have a look at FAQ219-2884 or FAQ181-2886
 

Chr(192) should be generating a À character.

The Missinglinq

Richmond, Virginia

There's ALWAYS more than one way to skin a cat!
 
If you look at the ASCII chart
ASCII Chart
or
Unicode
you will see that ASCII character 192 and Unicode 2514 are a box drawing light up and right

this is the character I am trying to recreate.
 
Thanks that works great. Where did you find that ChrW(9492)?
 
Hi, SmokeEater,

Working off PHV's tip, I checked out the ChrW function, which led me to the AscW function. AscW is essentially the inverse of ChrW - given a character, AscW returns its corresponding ASCII code. So I created a form with a textbox ([blue][Text0][/blue]), and another textbox with the control source set to "=AscW([Text0])". Then I copied and pasted the character in question from the Character Map applet into Text0, and voila! The 2nd textbox displayed 9492. To further test it, I created a 3rd textbox with a control source of "=ChrW(9492)" and it correctly displayed your character. I played around with a few other unicode characters just to confirm it wasn't a fluke.

There you have it. :)

Ken S.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top