"Tick" result used in a query result (1 Viewer)

PG2015

Registered User.
Local time
Today, 01:53
Joined
Feb 16, 2015
Messages
21
Hi - Is it possible to show a tick mark instead of the word "passed"?

I have the character in wingdings font but not sure that can be used in this way?

PassStatus: IIf([status]=0,"X",IIf([status]=1,"Passed","error"))

Thanks

PG:banghead:
 

CJ_London

Super Moderator
Staff member
Local time
Today, 01:53
Joined
Feb 19, 2013
Messages
16,612
you can - but would suggest in a form or report since you cannot specify a specific font for a specific column in datasheet view (query or table)

for the relevant control, specify the wingdings font and modify your passstatus to something like

PassStatus: IIf([status]=0,chr(41),IIf([status]=1,chr(42),chr(48)))

you'll need to check the chr values - and wingdings2 gives more choice.

If status has a value of 0,1 or null, you can also use the control format property to provide colour, and just pass the status value through as a numeric value. As before, set the font type to wingdings2 and your format property will be

[Green]\P;;[Red]\O;[Red]\V
 

Ranman256

Well-known member
Local time
Yesterday, 20:53
Joined
Apr 9, 2015
Messages
4,337
hmmm, ticks are true/false, so remove the IIF.

the checkbox is a table property, or a form property, or report.
if you display the query in a continuous form, you can have the checkboxes.
But a query alone cannot.
 

PG2015

Registered User.
Local time
Today, 01:53
Joined
Feb 16, 2015
Messages
21
That makes sense - thanks very much for your help
 

Mark_

Longboard on the internet
Local time
Yesterday, 17:53
Joined
Sep 12, 2017
Messages
2,111
For this I normally use ASCII 251 "√" which appears nice using most fonts.
 

Users who are viewing this thread

Top Bottom