View Full Version : making text bold in message boxes


andy mac
08-22-2001, 08:21 AM
how do you make the text in a custom message box bold? I just want the first line to be in bold & the rest normal.

D-Fresh
08-22-2001, 08:25 AM
As far as I know, you can't change the settings for the Common Dialog Boxes. You'll have to create your own popup form.

You could create a form with a two labels on it and a command button(ok). When you need the box, open up the form, set the first label to bold and put your first sentence. Set the second label to the rest of your info. You can then process items after the OK button is pressed. Hope this helps.

Doug

joeyreyma
08-22-2001, 03:47 PM
check this statement:

MsgBox "Wrong button!@This button doesn't work.@Try another.", _
vbOKOnly + vbExclamation

it will print the first line in bold!!!

pcs
08-22-2001, 04:04 PM
joeyreyma,

that is slick! gonna break one of my own rules here.

with access, i almost never ask 'why' something strange works...

but, why does this work? http://www.access-programmers.co.uk/ubb/smile.gif

al

never mind! found it in Help...didn't know this existed.



[This message has been edited by pcs (edited 08-22-2001).]

R. Hicks
08-22-2001, 04:24 PM
This method does not work in Access 2000 or Access 2002 when using VBA. The only way to do this in the 2 newer versions is by using a macro.

Just a thought,
RDH