A
anil
hi all
i have written a query as follows:
SELECT LabData.ParameterName, LabData.SAMPLE_NO, Month([SAMPLE DATE])
AS AMonth, Year([SAMPLE DATE]) AS Ayear, LabData.RESULT
FROM LabData
WHERE (((LabData.ParameterName)=[Forms]![Form2]![SelectParameter]) AND
((Month([SAMPLE DATE]))=[Forms]![Form2]![Select_Month]) AND
((Year([SAMPLE DATE]))=[Forms]![Form2]![Select_Year]));
This query is to get monthly result of the samples.
in the form i have used the Date-Time picker where i have set the date
as month and year selecting the custom property(3).
This query works when i run from query , but i enter month and year in
form , no results are recieved.
can u please help me like where is the mistake
thanks
anil
i have written a query as follows:
SELECT LabData.ParameterName, LabData.SAMPLE_NO, Month([SAMPLE DATE])
AS AMonth, Year([SAMPLE DATE]) AS Ayear, LabData.RESULT
FROM LabData
WHERE (((LabData.ParameterName)=[Forms]![Form2]![SelectParameter]) AND
((Month([SAMPLE DATE]))=[Forms]![Form2]![Select_Month]) AND
((Year([SAMPLE DATE]))=[Forms]![Form2]![Select_Year]));
This query is to get monthly result of the samples.
in the form i have used the Date-Time picker where i have set the date
as month and year selecting the custom property(3).
This query works when i run from query , but i enter month and year in
form , no results are recieved.
can u please help me like where is the mistake
thanks
anil