M
martybr
Good morning..
I have a database that has 3 forms, FormA, FormB, and FormC.
The reason there are 3 forms are:
1. FormA is the 'Main' form. It contains all the tasks that need to be
completed. It has a button that calls FormC
2. FormB is a filtered version of FormB. It contains all the
'Marketing' tasks to be completed.It also has the button that calls
FormC
3. FormC is a subtask list. It contains subtask from either FormA or
FormB. It has a 'back' button to go back the form that called it.
Here is the issue:
FormC's button does not go back to the form that called it. It goes
back to the form that orginally called it when the form was first
opened.
Behavior:
When the database is opened and FormA called FormC, FormC will go back
to FormA. Fine. When FormB calls FormC, FormC will still go back to
FormA, not FormB. Not fine.
When I close and reopen the database, and FormB will call FormC first,
FormC would now always go back to FormB. Not fine
Here is the code in the buttons:
1. FormA and FormB has the following syntax when They call FormC from
the button "DoCmd.OpenForm stDocName, , , Me![ItemNo], , , Me.Name"
2. FormC has the following syntax when calling the 'parent' form which
can be either FormA or FormB
"DoCmd.OpenForm Me.OpenArgs, , , stLinkCriteria"
How do I need to reset the OpenArgs to null after it is opened?
Any ideas?
Thank you.
I have a database that has 3 forms, FormA, FormB, and FormC.
The reason there are 3 forms are:
1. FormA is the 'Main' form. It contains all the tasks that need to be
completed. It has a button that calls FormC
2. FormB is a filtered version of FormB. It contains all the
'Marketing' tasks to be completed.It also has the button that calls
FormC
3. FormC is a subtask list. It contains subtask from either FormA or
FormB. It has a 'back' button to go back the form that called it.
Here is the issue:
FormC's button does not go back to the form that called it. It goes
back to the form that orginally called it when the form was first
opened.
Behavior:
When the database is opened and FormA called FormC, FormC will go back
to FormA. Fine. When FormB calls FormC, FormC will still go back to
FormA, not FormB. Not fine.
When I close and reopen the database, and FormB will call FormC first,
FormC would now always go back to FormB. Not fine
Here is the code in the buttons:
1. FormA and FormB has the following syntax when They call FormC from
the button "DoCmd.OpenForm stDocName, , , Me![ItemNo], , , Me.Name"
2. FormC has the following syntax when calling the 'parent' form which
can be either FormA or FormB
"DoCmd.OpenForm Me.OpenArgs, , , stLinkCriteria"
How do I need to reset the OpenArgs to null after it is opened?
Any ideas?
Thank you.