Answered by:
Is there a way to customize the "Yes" and "No" button text in a Yes/No Messagebox?

Question
-
Hey guys, I want to have a message box with two options. Instead of Yes/No I want it to say "LOCK" or "UNLOCK." Any way of accomplishing this?Thursday, September 5, 2019 11:42 PM
Answers
-
You may like to look at http://www.devhut.net/2017/03/24/great-access-tools-enhanced-message-box/
Daniel Pineault, 2010-2019 Microsoft MVP
Professional Support: http://www.cardaconsultants.com
MS Access Tips and Code Samples: http://www.devhut.net- Marked as answer by InnVis Friday, September 6, 2019 2:03 AM
Friday, September 6, 2019 1:12 AM
All replies
-
Hi,
I'm afraid it would be impossible. Please create a Form with two buttons "LOCK" and "UNLOCK".
Regards,Ashidacchi -- https://ssl01.rocketnet.jp/hokusosha.com/default.html
Thursday, September 5, 2019 11:57 PM -
You may like to look at http://www.devhut.net/2017/03/24/great-access-tools-enhanced-message-box/
Daniel Pineault, 2010-2019 Microsoft MVP
Professional Support: http://www.cardaconsultants.com
MS Access Tips and Code Samples: http://www.devhut.net- Marked as answer by InnVis Friday, September 6, 2019 2:03 AM
Friday, September 6, 2019 1:12 AM -
There is also the API way... check here:http://shutupdean.com/blog/2014/08/01/vba-msgbox-custom-button-text/Friday, September 6, 2019 1:54 PM
-
Hey John,
I have never used APIs before. I went to the link and downloaded the link provided and it just downloaded a blank excel document, now what?
Friday, September 6, 2019 5:08 PM -
Alt.+ F11 to get to VBE...just check the codeFriday, September 6, 2019 5:28 PM
-
I see, I figured as much. Was just wondering why he didn't just post the function codes lol.
Friday, September 6, 2019 5:39 PM -
Hey guys, I want to have a message box with two options. Instead of Yes/No I want it to say "LOCK" or "UNLOCK." Any way of accomplishing this?
For another API solution, there's this:
http://vbnet.mvps.org/index.html?code/hooks/messageboxhook.htm
Dirk Goldgar, MS Access MVP
Access tips: www.datagnostics.com/tips.htmlFriday, September 6, 2019 7:57 PM -
Hi,
This thread seems to be closed by the original poster, but it continues.
So, I made a sample UserForm like a message box.
I've shared it (UserForm_Msgbox.xlsm) via OneDrive.
Please download and try it.
Regards,
Ashidacchi -- https://ssl01.rocketnet.jp/hokusosha.com/default.html
- Edited by Ashidacchi Friday, September 6, 2019 11:05 PM
Friday, September 6, 2019 11:04 PM -
Hey guys, I want to have a message box with two options. Instead of Yes/No I want it to say "LOCK" or "UNLOCK." Any way of accomplishing this?
For another API solution, there's this:
http://vbnet.mvps.org/index.html?code/hooks/messageboxhook.htm
Dirk Goldgar, MS Access MVP
Access tips: www.datagnostics.com/tips.htmlFriday, September 6, 2019 11:55 PM -
There is also the API way... check here:http://shutupdean.com/blog/2014/08/01/vba-msgbox-custom-button-text/
Tried this API you shared John and even used the sample code provided in the link for testing on a command button. It makes my database "stop working."Friday, September 6, 2019 11:56 PM