Cosmos75
Registered User.
- Local time
- Today, 16:06
- Joined
- Apr 22, 2002
- Messages
- 1,281
I am trying to use a form in place of a msgbox.
I have a form (frmSetup) that opens another form (frmMsgBox). On frmMsgBox, I have two buttons, cmdOK & cmdCancel.
I would like to use frmMsgBox the way I would a VBA msgbox as in this example;
But I have no idea how to pass a variable back to the code from a button click on frmMsgBox?
Anyone know how to do this or know of a post that already shows how to do this? I wasn't able to find anything.

Attachment is Access 200 Version.
I have a form (frmSetup) that opens another form (frmMsgBox). On frmMsgBox, I have two buttons, cmdOK & cmdCancel.
I would like to use frmMsgBox the way I would a VBA msgbox as in this example;
Code:
If MsgBox("Click somthing", vbOKCancel, "VBA MsgBox") = vbOK Then
U_Pressed = "OK"
Else
U_Pressed = "Cancel"
End If
Anyone know how to do this or know of a post that already shows how to do this? I wasn't able to find anything.

Attachment is Access 200 Version.
Attachments
Last edited: