only by creating your own, similar to what Gina mentioned.
The way I would do this is to create a custom message form
(frm_AcceptDecline). A small form with a simple message and your
Accept/Decline buttons. When either of these buttons is clicked, set the
forms Tag property, something like:
Private Sub cmd_Accept_Click
me.Tag = vbYes
me.visible = false
end sub
Private Sub cmd_Decline_Click
me.Tag = vbNo
me.visible = false
End sub
Then, I would create a function that opens the form and waits for it to be
hidden. Once it is hidden, then it retrieves the value from the Tag
property, closes the form, and passes the value back to the calling code
Public Function fnAcceptDecline
'opening this with acDialog set will pause all other
'activity until the form is closed or hidden
docmd.OpenForm "frm_AcceptDecline",,,,,acDialog
fnAcceptDecline = Form_frm_AcceptDecline.Tag
docmd.close acform, "frm_AcceptDecline"
End Function
Then, in your code, where you want to pause for input, you would just insert
a couple of lines of code:
if fnAcceptDecline = vbYes then
'Accept code here
else
'Decline code here
endif
--
HTH
Dale
email address is invalid
Please reply to newsgroup only.
Gina Whipp said:
Fredg,
Southern at Heart needs Accept Decline and some other text on the Command
Button. I didn't think there was a way to get the message box to that, is
there?