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 Mike Lewis on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Adding a ? to a text box

Status
Not open for further replies.

NeilT123

Technical User
Jan 6, 2005
302
GB
I have a text box on a report which uses wingdings to show either a Tick or a Cross depending on the result of a query.
I would like to add in the option of showing a question mark but the ? in Wingdings is not very good.

Does anyone have any ideas on how I can do this?
Thank you for any input.
 
Have you tried conditional formatting?

Duane MS Access MVP
[green]Ask a great question, get a great answer.[/green] [red]Ask a vague question, get a vague answer.[/red]
[green]Find out how to get great answers faq219-2884.[/green]
 
How are yua NeilT123 . . .

All you have to do is [blue]switch the font used[/blue] via the [blue]FontName[/blue] property of the textbox in question.

As an example, in the [blue]On Print[/blue] event of the section where the textbox resides:
Code:
[blue]   If Me.Textboxname = "?" Then
      Me!Textboxname.FontName = "Arial"
   Else
      Me!Textboxname.FontName = "wingdings"
   End If[/blue]
[blue]Your Thoughts? . . .[/blue]

Calvin.gif
See Ya! . . . . . .

Be sure to see FAQ219-2884:
 
Hi AceMan that is the sort of thing I want to do.
I copied your code, changing Textboxname but get an error message saying Access can't find the macro 'If.Me'

Can you help more?
 
Ignore my last post, me being stupid, again!

Can you specify the font size through the same method?
 
NeilT123 . . .

For any textbox, have a look at the [blue]FontSize[/blue] property [thumbsup2]

Calvin.gif
See Ya! . . . . . .

Be sure to see FAQ219-2884:
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top