I have a subform (SubLogInOut) that record source is based on a query (qryWorkDatesHours)
the qyery code is
The subform is located in an unbound form (frmLogInOut)
I know the query for the subform works because I have a command button that event on_click has
But the issue is that when the main form loads the Subform does not contain the records based on the query
for some reason I think it's not getting the values of the three controls when the form first loads. But if I
click on the command button to refresh the main form then the subform contains the correct records.
Any Ideas how to solve this issue??
Newbie in search of knowledge
the qyery code is
Code:
SELECT * FROM tblLogInOut
WHERE employeeID=forms!frmloginout!txtEmployeeID.Value And (workdate Between forms!frmloginout!txtStartDate.value And forms!frmloginout!txtEndDate.value);
The subform is located in an unbound form (frmLogInOut)
I know the query for the subform works because I have a command button that event on_click has
Code:
me.refresh
But the issue is that when the main form loads the Subform does not contain the records based on the query
for some reason I think it's not getting the values of the three controls when the form first loads. But if I
click on the command button to refresh the main form then the subform contains the correct records.
Any Ideas how to solve this issue??
Newbie in search of knowledge