UtterAccess.com
X   Site Message
(Message will auto close in 2 seconds)

Welcome to UtterAccess! Please ( Login   or   Register )

Custom Search
 
   Reply to this topicStart new topic
> Msgbox Formatting With Bold Font, Access 2016    
 
   
khkeener
post Aug 22 2019, 01:48 PM
Post#1



Posts: 763
Joined: 26-February 04
From: Texas


I have a message box that pops up when someone forgets to put in a Start Date and End Date as part of the Search criteria in a Form. The message they get is, "You are missing the Start Date and the End Date, please fill them in and try again." What I would like to see is the words, "Start Date" and "End Date" in bold font, so that it reads, "You are missing the Start Date and the End Date, please fill them in and try again.

This is what I have tried, but it isn't working. I keep getting an error message of "Compile Error: Syntax Error"
CODE
MsgBox "You are missing the "& <b> Start Date </b> & " and the End Date, please fill them in and try again", vbRetry + vbExclamation, "Missing Dates"


What am I missing, or is it even possible to do this?


Kevin
Go to the top of the page
 
theDBguy
post Aug 22 2019, 02:04 PM
Post#2


Access Wiki and Forums Moderator
Posts: 76,320
Joined: 19-June 07
From: SunnySandyEggo


Hi Kevin. Unfortunately, the native message box is not capable of custom formatting. You could try using the API version or use a custom message form instead.

--------------------
Just my 2 cents... "And if I claim to be a wise man, it surely means that I don't know" - Kansas
Access Website | Access Blog | Email
Go to the top of the page
 
khkeener
post Aug 22 2019, 02:38 PM
Post#3



Posts: 763
Joined: 26-February 04
From: Texas


Ok, that’s what I thought, looks it will be a custom form.

Thanks for looking at this!
Go to the top of the page
 
isladogs
post Aug 22 2019, 02:51 PM
Post#4


UtterAccess VIP
Posts: 1,609
Joined: 4-June 18
From: Somerset, UK


See this link for a Formatted message box that should do what you want.

Or, for even more flexibility, try the Enhanced Message Box

--------------------
Go to the top of the page
 


Custom Search


RSSSearch   Top   Lo-Fi    22nd September 2019 - 03:29 PM