Good Morning All,
I am trying to get a query to read from a form a beginning date and an ending date for the query. If I query just by the user id it works great, but once I add the time-I get blank results. I have several fields in my table-user id, start time, end time are the three I am trying to use from the input in the form. Any suggestions?
Thank you in advanced.
SELECT OTM_STATS_20_Short_Time.USER_ID, OTM_STATS_20_Short_Time.MASTER_REX, OTM_STATS_20_Short_Time.Time_Percent_worked, q_abcd_score_per_rex.Grade_Score, OTM_STATS_20_Short_Time.MinOfSTART_TIME, OTM_STATS_20_Short_Time.MaxOfEND_TIME
FROM OTM_STATS_20_Short_Time INNER JOIN q_abcd_score_per_rex ON OTM_STATS_20_Short_Time.MASTER_REX = q_abcd_score_per_rex.MASTER_REX
GROUP BY OTM_STATS_20_Short_Time.USER_ID, OTM_STATS_20_Short_Time.MASTER_REX, OTM_STATS_20_Short_Time.Time_Percent_worked, q_abcd_score_per_rex.Grade_Score, OTM_STATS_20_Short_Time.MinOfSTART_TIME, OTM_STATS_20_Short_Time.MaxOfEND_TIME
HAVING (((OTM_STATS_20_Short_Time.USER_ID)=[Forms]![Form_Date_Input]![User_Id_Input]) AND ((OTM_STATS_20_Short_Time.MinOfSTART_TIME)=[Forms]![Form_Date_Input]![Begin_Date_Input]) AND ((OTM_STATS_20_Short_Time.MaxOfEND_TIME)=[Forms]![Form_Date_Input]![End_Date_Input]));
I am trying to get a query to read from a form a beginning date and an ending date for the query. If I query just by the user id it works great, but once I add the time-I get blank results. I have several fields in my table-user id, start time, end time are the three I am trying to use from the input in the form. Any suggestions?
Thank you in advanced.
SELECT OTM_STATS_20_Short_Time.USER_ID, OTM_STATS_20_Short_Time.MASTER_REX, OTM_STATS_20_Short_Time.Time_Percent_worked, q_abcd_score_per_rex.Grade_Score, OTM_STATS_20_Short_Time.MinOfSTART_TIME, OTM_STATS_20_Short_Time.MaxOfEND_TIME
FROM OTM_STATS_20_Short_Time INNER JOIN q_abcd_score_per_rex ON OTM_STATS_20_Short_Time.MASTER_REX = q_abcd_score_per_rex.MASTER_REX
GROUP BY OTM_STATS_20_Short_Time.USER_ID, OTM_STATS_20_Short_Time.MASTER_REX, OTM_STATS_20_Short_Time.Time_Percent_worked, q_abcd_score_per_rex.Grade_Score, OTM_STATS_20_Short_Time.MinOfSTART_TIME, OTM_STATS_20_Short_Time.MaxOfEND_TIME
HAVING (((OTM_STATS_20_Short_Time.USER_ID)=[Forms]![Form_Date_Input]![User_Id_Input]) AND ((OTM_STATS_20_Short_Time.MinOfSTART_TIME)=[Forms]![Form_Date_Input]![Begin_Date_Input]) AND ((OTM_STATS_20_Short_Time.MaxOfEND_TIME)=[Forms]![Form_Date_Input]![End_Date_Input]));