English Deutsch Français Italiano Español Português 繁體中文 Bahasa Indonesia Tiếng Việt ภาษาไทย
All categories

How can i display my own words on the result Buttons (yes/no) when using the command MsgBox in MS Access?

2006-09-18 04:48:31 · 4 answers · asked by wam_obeid 1 in Computers & Internet Programming & Design

What I mean is to have my own words instead of yes/no buttons
like: In/Out for example to apear as button text.

2006-09-18 05:01:22 · update #1

4 answers

I had the same question. I found this link.

http://www.pacificdb.com.au/MVP/Code/XMsgBox.htm

It will return the same answers as vbYesNoCancel or in your case vbYesNo

Just add a module, paste the code, and call the function xMsgBox()

2006-09-20 12:00:21 · answer #1 · answered by d f 1 · 0 0

The MS Access MsgBox command does not allow what you are wanting to do. To make custom message boxes, you must design custom forms with the buttons you want (and the actions attached to them) make a macro that opens the crated custom forms and assign the macro to a particular event.

MS Access MsgBox command is only for warnings.

Makiavel

2006-09-18 05:36:44 · answer #2 · answered by Makiavel 3 · 0 0

You can't. However, you could just build a small form similar to the message box and call it. This way you could put buttons on it with the text you would like.

2006-09-18 04:58:04 · answer #3 · answered by JW 2 · 0 0

You can't. Phrase your question in such a way that the answers make sense. There is a short list of possibilities, like Ok/Cancel, Yes/No/Cancel, etc.

Alternatively, you can use an inputbox (i think that's what its called) which gives the user a field to fill in.

2006-09-18 04:50:29 · answer #4 · answered by kheserthorpe 7 · 0 0

fedest.com, questions and answers