I have a filter and a bit confused how to combine the filter so that it works with 2 forms. Here is my code:
Code:
Option Compare Database
Option Explicit
Public Function getgraph()
DoCmd.OpenForm "frmQualityGraph", acFormPivotChart, , GetFilterFromListBoxes
End Function
Private Sub cmdReport_Click()
DoCmd.OpenForm "frmSearchQuality", acNormal, , GetFilterFromListBoxes
getgraph
DoCmd.close acForm, "frmSearchQualityPrograms", acSavePrompt
End Sub
The filter is GetFilterFromListboxes. form SearchQuality displays data from the filter and form QualityGraph is the pivot graph. If I run this, both forms open and update the results fine but if I were to put in a docmd.close acform, "frmQualityGraph", acSavePrompt so that 2nd graph pivot form actually closes, the frmSearchQuality with the embedded PivotChart is displayed but the PivotChart is not updated with results. I have tried to get help with this but the responses confuse me and no one really seems to know how to make this work. I would think something like this should have an easy solution. I have played and played and read and read and to the point now where I think I might just hire someone to figure it out because we are going on 3 wks of trying to make this work.