I would suggest getting familiar with VBA. The below drill may help you to understand some basics. You can study more about MsgBoxes in the VBA editor help files. Search "MsgBox Function". Ultimately, you should be able to manipulate the example to create different results without breaking it.
Create a blank DB
Create an unbound form
Create a control Button
Create an unbound textbox named "txtAnswer"
In the control Button's click event paste the following:
Code:
Dim Msg, Style, Title, Help, Ctxt, Response, MyString
Msg = "Do you want to continue ?" ' Define message.
Style = vbYesNo + vbCritical + vbDefaultButton2 ' Define buttons.
Title = "MsgBox Demonstration" ' Define title.
Help = "DEMO.HLP" ' Define Help file.
Ctxt = 1000 ' Define topic
' context.
' Display message.
Response = MsgBox(Msg, Style, Title, Help, Ctxt)
If Response = vbYes Then ' User chose Yes.
MyString = "Yes" ' Perform some action.
Else ' User chose No.
MyString = "No" ' Perform some action.
End If
MsgBox "You chose " & MyString, vbInformation, "Answer!" 'Display what the user chose in a new msg box
Me.txtAnswer.Value = MyString 'Transfer the string variable to an unbound text box
'