I'm trying to pass a variable from a modal form to the main form. In my main form, I'm using this command to open the modal form:
stDocName = "testselection"
DoCmd.OpenForm stDocName, , , , , acDialog, stLinkCriteria
After I've made my selections on my modal form, A variable is assigned the selections. I'm not closing the form, I'm setting me.visible = false.
With this being done, within the main form, I'm not able to recognize the variable created in the modal form.
stDocName = "testselection"
DoCmd.OpenForm stDocName, , , , , acDialog, stLinkCriteria
After I've made my selections on my modal form, A variable is assigned the selections. I'm not closing the form, I'm setting me.visible = false.
With this being done, within the main form, I'm not able to recognize the variable created in the modal form.