Crosstab query and between

lflopes

Registered User.
Local time
Today, 17:43
Joined
Dec 15, 2005
Messages
13
i have this crosstab query that works fine

TRANSFORM Sum(VoosAeronTbl.ATE) AS SomaDeATE
SELECT AeronaveTbl.Registo
FROM MissaoTbl INNER JOIN (AeronaveTbl INNER JOIN VoosAeronTbl ON AeronaveTbl.MatriculaID = VoosAeronTbl.MatriculaID) ON MissaoTbl.MissaoID = VoosAeronTbl.MissaoID
GROUP BY AeronaveTbl.Registo
PIVOT MissaoTbl.MISSAO;


when I try to select between dates set on a form field like this...

TRANSFORM Sum(VoosAeronTbl.ATE) AS SomaDeATE
SELECT AeronaveTbl.Registo
FROM MissaoTbl INNER JOIN (AeronaveTbl INNER JOIN VoosAeronTbl ON AeronaveTbl.MatriculaID = VoosAeronTbl.MatriculaID) ON MissaoTbl.MissaoID = VoosAeronTbl.MissaoID
WHERE (((VoosAeronTbl.Data) Between [forms]![ContAnFrm]![DataInicio] And [forms]![ContAnFrm]![DataFim]))
GROUP BY AeronaveTbl.Registo
PIVOT MissaoTbl.MISSAO;

...I get the follow error

microsoft jet database motor does not recognize [forms]![ContAnFrm]![DataInicio] as a field name or valid expression


Help
thanks
 
Xtab queries require you to specify the parameter either in the xtab itself or in any sub query.

Right click in the query and select parameters and enter the full reference to the parameter(s) on the form and its data type.
 
Xtab queries require you to specify the parameter either in the xtab itself or in any sub query.

Right click in the query and select parameters and enter the full reference to the parameter(s) on the form and its data type.


THANKS
the error disapeared but...
how can I make a "betwwen" with parameters. sometinhg is missing me
 

Users who are viewing this thread

Back
Top Bottom