In my MS Access-VB code, I want to throw a msgbox, but not
show the "OK" button on that msgbox. what can i do?
You can define what buttons will appear on your messagebox by passing the
appropriate intrinsic constant (or its equivalent value) to the "Button"
argument of the MsgBox() function. Some examples are:
vbOkOnly - Displays Ok button
vbOkCancel - Displays Ok and Cancel buttons
vbYesNo - Displays Yes and No buttons
vbYesNoCancel - Displays Yes, No, and Cancel buttons
One would decide which buttons to display on the messagebox based on the context
of the message (obviously, you would need to provide more than an 'Ok' button to
respond to a question that requires a 'Yes' or 'No' answer) and the desired
return value. Is this what you are looking for?