Formatting message boxes

C

Chris Punter

Ok folks I'm very much new at doing codes so thanks for your patience
I'd like to know is there any way to Bold the variable part in a
msgbox.using vb without doing the whole box?
 
D

Douglas J. Steele

What version of Access?

In Access 97, you could do something like

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

to have Wrong button! bold, but this was taken away in later versions of
Access. You can use Eval function, as MichKa outlines at
http://www.trigeminal.com/usenet/usenet015.asp or you can just design your
own form to use instead of the message box.
 
C

Chris Punter

Yes i am using access 2002. That method does still work when using
macros... but not in VB
 
D

Douglas J. Steele

Excuse me? Did you try MichKa's code? It works fine in Access 2002: I just
tried it to check.
 
C

Chris Punter

Yes... sorry that did work... just forgot to add a few declarations in my
code.
Thank you for your help.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top