H
hermie
Hello
I have a report that is called from a crosstabquery
The query field: Date_gestion have criteria: Between #1/1/2005# And
#1/31/2005#
This all works fine when I run the report.
Now I have made some changes.
First I have created a parameter form
I changed the query and now the report not run as expected?
I got the message cannot recognize [Forms]![Paraform]![txtFecha1]?
What goes wrong here?
Can you not run a report from a crosstabquery this way?
Below Info about the related table,forms and queries
Hope someone can help me
Herman
SQL query is:
SELECT Programa.Prog_plura, [HG-002 SERVICIO-APOYO].SEG_SOC_PART, [HG-002
SERVICIO-APOYO].CODIGO_SERVICIO, [HG-002 SERVICIO-APOYO].DATE_GESTION,
[HG-001 PARTICIPANTE].AREA_LOCAL, [HG-001 PARTICIPANTE].Tipoasist
FROM [HG-002 EXPERIENCIA TRABAJO] INNER JOIN (([HG-001 PARTICIPANTE] INNER
JOIN Programa ON [HG-001 PARTICIPANTE].PROGRAMA = Programa.Cod_Prog) INNER
JOIN [HG-002 SERVICIO-APOYO] ON [HG-001 PARTICIPANTE].SEG_SOC_PART = [HG-002
SERVICIO-APOYO].SEG_SOC_PART) ON ([HG-001 PARTICIPANTE].SEG_SOC_PART =
[HG-002 EXPERIENCIA TRABAJO].SEG_SOC_PART) AND ([HG-002 EXPERIENCIA
TRABAJO].DATE_GESTION = [HG-002 SERVICIO-APOYO].DATE_GESTION) AND ([HG-002
EXPERIENCIA TRABAJO].SEG_SOC_PART = [HG-002 SERVICIO-APOYO].SEG_SOC_PART)
WHERE ((([HG-002 SERVICIO-APOYO].DATE_GESTION) Between
[Forms]![Paramform]![txtFecha1] And [Forms]![Paramform]![txtFecha2]) AND
(([HG-001 PARTICIPANTE].AREA_LOCAL)=[Forms]![Paramform]![cboCons]) AND
(([HG-001 PARTICIPANTE].Tipoasist)=[Forms]![Paramform]![cboTipo]));
SQL Crosstab:
TRANSFORM Count([Apoyo X mes para crosstab].SEG_SOC_PART) AS
CountOfSEG_SOC_PART
SELECT [Apoyo X mes para crosstab].CODIGO_SERVICIO, Count([Apoyo X mes para
crosstab].SEG_SOC_PART) AS [Total Of SEG_SOC_PART]
FROM [Apoyo X mes para crosstab]
GROUP BY [Apoyo X mes para crosstab].CODIGO_SERVICIO
PIVOT [Apoyo X mes para crosstab].Prog_plura;
ParamForm selections:
txtFecha1
txtFecha2
cboTipo
cboCons
cmdOK on click event me.visible = false
Report events:
on open: DoCmd.OpenForm "Paramform", , , , , acDialog
on close: DoCmd.Close acForm, "Paramform"
I have a report that is called from a crosstabquery
The query field: Date_gestion have criteria: Between #1/1/2005# And
#1/31/2005#
This all works fine when I run the report.
Now I have made some changes.
First I have created a parameter form
I changed the query and now the report not run as expected?
I got the message cannot recognize [Forms]![Paraform]![txtFecha1]?
What goes wrong here?
Can you not run a report from a crosstabquery this way?
Below Info about the related table,forms and queries
Hope someone can help me
Herman
SQL query is:
SELECT Programa.Prog_plura, [HG-002 SERVICIO-APOYO].SEG_SOC_PART, [HG-002
SERVICIO-APOYO].CODIGO_SERVICIO, [HG-002 SERVICIO-APOYO].DATE_GESTION,
[HG-001 PARTICIPANTE].AREA_LOCAL, [HG-001 PARTICIPANTE].Tipoasist
FROM [HG-002 EXPERIENCIA TRABAJO] INNER JOIN (([HG-001 PARTICIPANTE] INNER
JOIN Programa ON [HG-001 PARTICIPANTE].PROGRAMA = Programa.Cod_Prog) INNER
JOIN [HG-002 SERVICIO-APOYO] ON [HG-001 PARTICIPANTE].SEG_SOC_PART = [HG-002
SERVICIO-APOYO].SEG_SOC_PART) ON ([HG-001 PARTICIPANTE].SEG_SOC_PART =
[HG-002 EXPERIENCIA TRABAJO].SEG_SOC_PART) AND ([HG-002 EXPERIENCIA
TRABAJO].DATE_GESTION = [HG-002 SERVICIO-APOYO].DATE_GESTION) AND ([HG-002
EXPERIENCIA TRABAJO].SEG_SOC_PART = [HG-002 SERVICIO-APOYO].SEG_SOC_PART)
WHERE ((([HG-002 SERVICIO-APOYO].DATE_GESTION) Between
[Forms]![Paramform]![txtFecha1] And [Forms]![Paramform]![txtFecha2]) AND
(([HG-001 PARTICIPANTE].AREA_LOCAL)=[Forms]![Paramform]![cboCons]) AND
(([HG-001 PARTICIPANTE].Tipoasist)=[Forms]![Paramform]![cboTipo]));
SQL Crosstab:
TRANSFORM Count([Apoyo X mes para crosstab].SEG_SOC_PART) AS
CountOfSEG_SOC_PART
SELECT [Apoyo X mes para crosstab].CODIGO_SERVICIO, Count([Apoyo X mes para
crosstab].SEG_SOC_PART) AS [Total Of SEG_SOC_PART]
FROM [Apoyo X mes para crosstab]
GROUP BY [Apoyo X mes para crosstab].CODIGO_SERVICIO
PIVOT [Apoyo X mes para crosstab].Prog_plura;
ParamForm selections:
txtFecha1
txtFecha2
cboTipo
cboCons
cmdOK on click event me.visible = false
Report events:
on open: DoCmd.OpenForm "Paramform", , , , , acDialog
on close: DoCmd.Close acForm, "Paramform"