Hi everyone,
I have a question regarding a graph I added into a form
I want to update the graph based on a query named "tasks" and into my form I added two dates named "startdatetxt" and "enddatetxt" (both independient fields) as well a button named filtercmd
the query does not include the dates for the task, if I do this the graph shows a big division of the pie and just want to see how many are pending and closed from a period of dates
'*************************
Private Sub Filtercmd_Click()
Me.Requery
Me.Filter = ""
Me.FilterOn = False
If Me.StartDatetxt <> "" And Me.EndDatetxt <> "" Then
Me.Requery
'I don't know how to define this line below....
'Pie_Graph
'I was using this to calculate for a form based on a query but in this particular case I am sure how to do this...
'Me.Pie_Graph.Filter = "[Fecha_Accion] >= #" & Format(StartDatetxt, "yyyy-mm-dd") & "# And [Fecha_Accion] <= #" & Format(EndDatetxt, "yyyy-mm-dd") & "#"
Me.FilterOn = True
End If
End Sub
Thanks for the help!!!