F
FrankTimJr
I am getting a little frustrated because I can't seem to get the "Refresh"
command to work at all. I am probably doing something wrong, but here is
what is happening.
My main form "frm_Register" contains two subforms. One, called
"frm_Order_Wksheet" is used to identify if an order will be completed in a
specific month. The user would select from a dropdown called "Status" one
of a few values. "Committed", "Risk", "New" and a couple of others. This
subform is where all of the editing is done. The second subform is called
"frm_Revenue_Summary" where it calculates all of the revenue in the specific
'buckets' from the "Status" field on the "frm_Order_Wksheet". Think of
"frm_Revenue_Summary" as sort of a calculator that tells the user how much
revenue they committed to.
If I choose a "Status", then click on the subform "frm_Revenue_Summary",
then either press the F9 key or go to Records => Refresh, the values are
updated appropriately.
Accoring to the Visual Basic Help within Access, all I needed to do is use
an OnActivate event "Me.Refresh" in "frm_Revenue_Summary". So what I did
was the following:
When I pick a "Status", I created an "AfterUpdate" event: DoCmd.GoToControl
"frm_Revenue_Summary". Then, in the OnActivate event in
"frm_Revenue_Summary", I created an OnActivate event: Me.Refresh.
It is not working at all. But if I remove the OnActivate event, but leave
the AfterUpdate event on "Status" within the subform "frm_Order_WkSheet",
then I test it by selecting "Commited" on one of the orders, I press F9 key
and it refrehses perfectly.
What am I doing wrong? Or, what else could I do to make this work more
efficiently w/out having to use a TON of code.
command to work at all. I am probably doing something wrong, but here is
what is happening.
My main form "frm_Register" contains two subforms. One, called
"frm_Order_Wksheet" is used to identify if an order will be completed in a
specific month. The user would select from a dropdown called "Status" one
of a few values. "Committed", "Risk", "New" and a couple of others. This
subform is where all of the editing is done. The second subform is called
"frm_Revenue_Summary" where it calculates all of the revenue in the specific
'buckets' from the "Status" field on the "frm_Order_Wksheet". Think of
"frm_Revenue_Summary" as sort of a calculator that tells the user how much
revenue they committed to.
If I choose a "Status", then click on the subform "frm_Revenue_Summary",
then either press the F9 key or go to Records => Refresh, the values are
updated appropriately.
Accoring to the Visual Basic Help within Access, all I needed to do is use
an OnActivate event "Me.Refresh" in "frm_Revenue_Summary". So what I did
was the following:
When I pick a "Status", I created an "AfterUpdate" event: DoCmd.GoToControl
"frm_Revenue_Summary". Then, in the OnActivate event in
"frm_Revenue_Summary", I created an OnActivate event: Me.Refresh.
It is not working at all. But if I remove the OnActivate event, but leave
the AfterUpdate event on "Status" within the subform "frm_Order_WkSheet",
then I test it by selecting "Commited" on one of the orders, I press F9 key
and it refrehses perfectly.
What am I doing wrong? Or, what else could I do to make this work more
efficiently w/out having to use a TON of code.