A
Alejandro
Hello there,
I have a form with a couple of combo boxes and a OLE object (Microsoft Graph
Chart); the graph is supposed to show some average times when I click on the
CALCULATE button. The query that generates the graph uses another query as a
source (first query manipulates data from a table and the query in the graph
groups it by one category an filters based on the values from the combo boxes)
This is the code behind the CALCULATE button:
Private Sub cmd_Calculate_Click()
' Me.Requery
Me.grph_WaitTimeHistogram_ByPeriod.Visible = True
Me.grph_WaitTimeHistogram_ByPeriod.Requery
End Sub
After clicking on the CALCULATE button the graph is not generated; all I see
is a empty box. If I double-click on the box (which enables the Excel
features of the graph) then I see the graph. I tried adding Me.requery in my
code to see if by refreshing the whole form I'd get something different, but
it didn't work. I don't know if the problem is that I'm creating a graph
using a query whose source is another query, if I'm missing lines of code
that I should be using when working with graphs, or what, but I really need
to get this fixed. Any tip or advice is greatly appreciated.
Thanks,
A.
I have a form with a couple of combo boxes and a OLE object (Microsoft Graph
Chart); the graph is supposed to show some average times when I click on the
CALCULATE button. The query that generates the graph uses another query as a
source (first query manipulates data from a table and the query in the graph
groups it by one category an filters based on the values from the combo boxes)
This is the code behind the CALCULATE button:
Private Sub cmd_Calculate_Click()
' Me.Requery
Me.grph_WaitTimeHistogram_ByPeriod.Visible = True
Me.grph_WaitTimeHistogram_ByPeriod.Requery
End Sub
After clicking on the CALCULATE button the graph is not generated; all I see
is a empty box. If I double-click on the box (which enables the Excel
features of the graph) then I see the graph. I tried adding Me.requery in my
code to see if by refreshing the whole form I'd get something different, but
it didn't work. I don't know if the problem is that I'm creating a graph
using a query whose source is another query, if I'm missing lines of code
that I should be using when working with graphs, or what, but I really need
to get this fixed. Any tip or advice is greatly appreciated.
Thanks,
A.