M
Matt D Francis
Hi. I am getting two unwanted parameter prompts on a query.
It's a simple Select query that has two fields on which I have placed a
Count. I then have a third field calculating the difference between these two
counts/totals and it's this that seems to be casuing the paramater prompt.
SQL is as follows:
SELECT TBL_CALENDER.GRAND_PRIX, Count(TBL_RACE_RESULTS.QUAL_POS) AS
CountOfQUAL_POS, Count(TBL_CLASSIFICATION_TEXT2NUM.CLASSIFICATION_NUM) AS
CountOfCLASSIFICATION_NUM, ([CountOfQUAL_POS]-[CountOfCLASSIFICATION_NUM]) AS
Retirements
FROM TBL_CLASSIFICATION_TEXT2NUM RIGHT JOIN (TBL_CALENDER RIGHT JOIN
TBL_RACE_RESULTS ON TBL_CALENDER.RACE_DATE = TBL_RACE_RESULTS.RACE_DATE) ON
TBL_CLASSIFICATION_TEXT2NUM.CLASSIFICATION = TBL_RACE_RESULTS.CLASSIFICATION
GROUP BY TBL_CALENDER.GRAND_PRIX,
([CountOfQUAL_POS]-[CountOfCLASSIFICATION_NUM]);
When I run it prompts me for the two total fields. I leave them blank and it
runs fine, but I don't understand why the prompts are coming up.
Any suggestions?
Cheers
Matt
It's a simple Select query that has two fields on which I have placed a
Count. I then have a third field calculating the difference between these two
counts/totals and it's this that seems to be casuing the paramater prompt.
SQL is as follows:
SELECT TBL_CALENDER.GRAND_PRIX, Count(TBL_RACE_RESULTS.QUAL_POS) AS
CountOfQUAL_POS, Count(TBL_CLASSIFICATION_TEXT2NUM.CLASSIFICATION_NUM) AS
CountOfCLASSIFICATION_NUM, ([CountOfQUAL_POS]-[CountOfCLASSIFICATION_NUM]) AS
Retirements
FROM TBL_CLASSIFICATION_TEXT2NUM RIGHT JOIN (TBL_CALENDER RIGHT JOIN
TBL_RACE_RESULTS ON TBL_CALENDER.RACE_DATE = TBL_RACE_RESULTS.RACE_DATE) ON
TBL_CLASSIFICATION_TEXT2NUM.CLASSIFICATION = TBL_RACE_RESULTS.CLASSIFICATION
GROUP BY TBL_CALENDER.GRAND_PRIX,
([CountOfQUAL_POS]-[CountOfCLASSIFICATION_NUM]);
When I run it prompts me for the two total fields. I leave them blank and it
runs fine, but I don't understand why the prompts are coming up.
Any suggestions?
Cheers
Matt