Hi Everybody,
I've been searching the forum for information on passing variables but I'm not sure how I would apply it in my case. Can someone help?
I have a subform of a purchase order form. As the user enters the first line item, I have to check what type of line item the entry is. In the Before_Update event of that subform, I ask the user a Y/N question about the line item. I have two cmd buttons that the user would click to indicate their answer (Y/N). I would like the Y/N answer variable to be known to the code in the After_Insert event of the same form.
Do I declare the answer variable in a Module as a public variable?
Thanks in advance!
I've been searching the forum for information on passing variables but I'm not sure how I would apply it in my case. Can someone help?
I have a subform of a purchase order form. As the user enters the first line item, I have to check what type of line item the entry is. In the Before_Update event of that subform, I ask the user a Y/N question about the line item. I have two cmd buttons that the user would click to indicate their answer (Y/N). I would like the Y/N answer variable to be known to the code in the After_Insert event of the same form.
Do I declare the answer variable in a Module as a public variable?
Thanks in advance!