Wingding characters with decimal values (1 Viewer)

HeelNGville

Registered User.
Local time
Today, 08:46
Joined
Apr 13, 2004
Messages
71
Thanks in advance for suggestions.

Within a specific report, I have a field named ‘Rating’ that will have a numerical range from 0.0-5.0. Basically, I was hoping to insert a ratings view by utilizing special wingdings characters. I can achieve the results I need until the introduction of a decimal value.

For example, if a ‘Rating’ is 2.0, the formula =String([RATING],"ê") produces:

** (2 solid stars). No wingding font to display

Which is exactly what I need. However, when of the decimal rating ranges from 0.50-.0.75 I would like for another character to trail. For example, suppose the rating is 4.6, the result I hope to obtain same as above, however decimal portion would be a different character. Basically “ê” for full stars, and “ó” for half stars.

Any recommendations? Thanks!
 

vbaInet

AWF VIP
Local time
Today, 14:46
Joined
Jan 22, 2010
Messages
26,374
Something like:
Code:
=String(Fix([RATING]), "ê") & "." & String(Val(Mid([RATING], Instr(1, [RATING], ".") + 1)), “ó”)
 

HeelNGville

Registered User.
Local time
Today, 08:46
Joined
Apr 13, 2004
Messages
71
Thank you. I receive a 'Enter the Parameter value' dialog for the "ó" character. The character is in the font set, any ideas?

Thanks again.
 

jer

Registered User.
Local time
Today, 14:46
Joined
Nov 21, 2011
Messages
109
vbaInet I got a problem.. how do i contact you?
 

vbaInet

AWF VIP
Local time
Today, 14:46
Joined
Jan 22, 2010
Messages
26,374
It's the way you wrote it, which I copied and pasted into my code.

It should be "ó" not ó
 

HeelNGville

Registered User.
Local time
Today, 08:46
Joined
Apr 13, 2004
Messages
71
Duh, thanks.

Although, now the entire result is a repeated value. For example, a rating of 2.5 is appearing as

êê.óóóóóóóóóóó (actual wingding characters) Formula is:

=String(Fix([OVERALL_RATING_NBR]),"ê") & "." & String(Val(Mid([OVERALL_RATING_NBR],InStr(1,[OVERALL_RATING_NBR],".")+1)),"ó")
 

vbaInet

AWF VIP
Local time
Today, 14:46
Joined
Jan 22, 2010
Messages
26,374
vbaInet I got a problem.. how do i contact you?
Welcome to the forum! :)

You don't need to contact me, just post a new thread and one of us should pick it up.
 

HeelNGville

Registered User.
Local time
Today, 08:46
Joined
Apr 13, 2004
Messages
71
vbaInet. Thanks again for your help. I was able to obtain the results that I needed by slightly tweaking your formula as such:

=String(Fix([OVERALL_RATING_NBR]),"ê") & "ó" & String(Val(Mid([OVERALL_RATING_NBR],InStr(1,[OVERALL_RATING_NBR])+1))," ")

So 2.5 would yield:
êêó (characters not text)

Thank you again!
 

vbaInet

AWF VIP
Local time
Today, 14:46
Joined
Jan 22, 2010
Messages
26,374
Goodie!

I thought .5 would repeat ó five times? Is that not the case then?
 

HeelNGville

Registered User.
Local time
Today, 08:46
Joined
Apr 13, 2004
Messages
71
Ahhh. Yep, results are displaying character equivelant of 2.5

êêó

Well, spoiled my 5 minutes of victory. Any suggestions?
 

vbaInet

AWF VIP
Local time
Today, 14:46
Joined
Jan 22, 2010
Messages
26,374
At least you had some minutes of celebration and I'm sure it felt good... whilst it lasted ;)

Are they all Fixed dps? i.e. 1 dp?
 

HeelNGville

Registered User.
Local time
Today, 08:46
Joined
Apr 13, 2004
Messages
71
Ha ha. So much for banging my chest in my Tarzan like moment of glory.

Yes, fixed single position.
 

vbaInet

AWF VIP
Local time
Today, 14:46
Joined
Jan 22, 2010
Messages
26,374
Maybe you can resume your celebration with this:
Code:
=String(Fix([OVERALL_RATING_NBR]), "ê") & String(Abs(Val(Right([OVERALL_RATING_NBR] * 10, 1)) > 0) * 1, "ó")
... make sure you do it in a real jungle this time :D
 

RenaG

Registered User.
Local time
Today, 07:46
Joined
Mar 29, 2011
Messages
166
How do you put the special character in the statement?
For example, if a ‘Rating’ is 2.0, the formula =String([RATING],"ê") produces:

I have a report that I would like to put a check mark if the tested field is a certain value:
Code:
=IIf([EthnicityID]=1,Chr(252)," ")

I looked up the Wingding value through Word but the character code is decimal and doesn't show up correctly in the report.

TIA!
~RLG
 

Users who are viewing this thread

Top Bottom