platypus71
Technical User
I know I should probably scrap this macro and write the VB code, but I was hoping not to have to do that.
Here is the problem:
I have a form called OriginalForm with a button and a field called "EventID" (and other stuff that is not relevant here). When you click the button, it executes a macro that opens a new form called NewForm, makes changes to that form, prints the form and closes the form.
The "Where Condition" in the macro for opening the form is [EventID]=[Forms]![OriginalForm]![EventID]
It works great the first time. However, if I change EventIDs to a different one and click the button, the NewForm that opens is for the same EventID as before.
What do I need to do/change to make the EventID being read in be the new one?
Here is the problem:
I have a form called OriginalForm with a button and a field called "EventID" (and other stuff that is not relevant here). When you click the button, it executes a macro that opens a new form called NewForm, makes changes to that form, prints the form and closes the form.
The "Where Condition" in the macro for opening the form is [EventID]=[Forms]![OriginalForm]![EventID]
It works great the first time. However, if I change EventIDs to a different one and click the button, the NewForm that opens is for the same EventID as before.
What do I need to do/change to make the EventID being read in be the new one?