S
Sandy
Hello -
I have a main form with a 7 tabs in a tab control.
The data I am managing is for a manufacturing work flow, so most of the data
is in one table with many fields as the work flow is linear.
I have organized the view of the data in the tab controls, using sub forms
in each tab
eg
Job details
Quote Prep
Quote Summary
Quote
PO
Requisition
etc
Some of the fields in a sub form are based on values or calculations against
fields on another sub form.
eg
=[Forms]![Main Form]![f_QuoteSummary].[Form]![OrderGrandTotal]
The challenge I am facing is that when I update the data in one tab, then
move to another, the data is not refreshing.
I have set up the following Event Procedures on the tab buttons in an effort
to solve this but it does not work consistently.
The idea was to save the record on the tab sub forms I was working on (on
MouseDown) before moving on to another tab, then refreshing the data on forms
in the new tab control (on MouseUp) before it is viewed.
Private Sub QuoteSumm_MouseDown(Button As Integer, Shift As Integer, X As
Single, Y As Single)
DoCmd.RunCommand acCmdSaveRecord
End Sub
Private Sub QuoteSumm_MouseUp(Button As Integer, Shift As Integer, X As
Single, Y As Single)
Me![f_QuoteSummary].Form.Requery
End Sub
The data does not always refresh - I have to click in and out of the form
before I get the new data.
Any help making this more elegant and reliable would be greatly appreciated.
regards
sandra
I have a main form with a 7 tabs in a tab control.
The data I am managing is for a manufacturing work flow, so most of the data
is in one table with many fields as the work flow is linear.
I have organized the view of the data in the tab controls, using sub forms
in each tab
eg
Job details
Quote Prep
Quote Summary
Quote
PO
Requisition
etc
Some of the fields in a sub form are based on values or calculations against
fields on another sub form.
eg
=[Forms]![Main Form]![f_QuoteSummary].[Form]![OrderGrandTotal]
The challenge I am facing is that when I update the data in one tab, then
move to another, the data is not refreshing.
I have set up the following Event Procedures on the tab buttons in an effort
to solve this but it does not work consistently.
The idea was to save the record on the tab sub forms I was working on (on
MouseDown) before moving on to another tab, then refreshing the data on forms
in the new tab control (on MouseUp) before it is viewed.
Private Sub QuoteSumm_MouseDown(Button As Integer, Shift As Integer, X As
Single, Y As Single)
DoCmd.RunCommand acCmdSaveRecord
End Sub
Private Sub QuoteSumm_MouseUp(Button As Integer, Shift As Integer, X As
Single, Y As Single)
Me![f_QuoteSummary].Form.Requery
End Sub
The data does not always refresh - I have to click in and out of the form
before I get the new data.
Any help making this more elegant and reliable would be greatly appreciated.
regards
sandra