FoxProProgrammer
Programmer
Is there a way to return a value from frm_MultipleID after opening it with:
frm_MultipleID has three buttons: Yes, No, Help. I need to know if the user pressed Yes or No after returning to the calling program.
The MsgBox function won't work because the form has a lot more on it than just a simple prompt. I don't want to include the code that runs when the user presses Yes or No on frm_MultipleID because all the data that I need to process is on the calling form. The form frm_MultipleID is used to confirm changes to the database before they are made. One thing that I though of is to include a hidden field on the calling program, and set the value depending on which button is pressed. This is kind of a trick, and I was hoping that there's a cleaner way to return a value to a calling form.
Thanks!
dz
dzaccess@yahoo.com
Code:
DoCmd.OpenForm "frm_MultipleID", , , , , , sendArgs
frm_MultipleID has three buttons: Yes, No, Help. I need to know if the user pressed Yes or No after returning to the calling program.
The MsgBox function won't work because the form has a lot more on it than just a simple prompt. I don't want to include the code that runs when the user presses Yes or No on frm_MultipleID because all the data that I need to process is on the calling form. The form frm_MultipleID is used to confirm changes to the database before they are made. One thing that I though of is to include a hidden field on the calling program, and set the value depending on which button is pressed. This is kind of a trick, and I was hoping that there's a cleaner way to return a value to a calling form.
Thanks!
dz
dzaccess@yahoo.com