Hi,

I have a form with 2 peices of code on it. When the user presses the OK button, a form pops up which acts like a message box (but it isn't.. I couldn't use the built in MsgBox for a reason, so don't suggest using the MsgBox) which has 2 buttons on it.. OK and Cancel. What I need to do is when the user clicks on a button, the form closes and returns to the original form and runs the peice of code depending on which button the user selected in the other form.

So the question is, how do I pass back to the original form the button that the user clicked on?

Thanks,

Dan