first impression
Hola
Necesito ayuda sobre un componente para hacer gráficos llamado first impression. Mi problema viene cuando le pido que en un mismo gráfico me compare los datos de dos municipios, que se seleccionan de dos combos.
Este es el código:
__________________________________
Private Sub Command1_Click()
Set bm = dbmuni.OpenRecordset("SELECT * FROM EDAD_EMIGRACION where municipio = '" & Combo1.List(Combo1.ListIndex) & "' and municipio = '" & Combo2.List(Combo2.ListIndex) & "' and municipio = '" ")
Set Data1.Recordset = bm
VtChart1.Visible = True
VtChart1.Refresh
VtChart1.chartType = VtChChartType2dBar
bm.Close
dbmuni.Close
End Sub
_______________________________
Cuando le pongo que haga el gráfico con un sólo municipio [where municipio = '" & Combo1.List(Combo1.ListIndex) & "'], no me da ningún problema, en cuanto le pongo más municipios me sale el mensaje "NOT ENOUGH DATA" en el lugar del gráfico.
¿Alguien sabría ayudarme?
Muchas gracias de antemano
|