Hi everyone,
I have been reading the helpful posts here and now have one of my own.
Could anyone tell me (nicely as I am new, just as you once were) what I am doing wrong in the following code;
SELECT Maint_PM.[Machine ID]
From Maint_PM
Where (Between (([Forms]![Date Range]![StartDate]) And ([Forms]![Date Range]![EndDate])))
UNION ALL Select Maint_UM.[Machine ID]
From Maint_UM
Where (Between (([Forms]![Date Range]![StartDate]) And ([Forms]![Date Range]![EndDate])))
It keeps telling me there is a missing operator in my between statement, but from what I have read I thought I had it correct.
I am trying to give a list of machines based on a start date and end date from a form called Date Range. Any help will be greatly appreciated.
Brett
I have been reading the helpful posts here and now have one of my own.
Could anyone tell me (nicely as I am new, just as you once were) what I am doing wrong in the following code;
SELECT Maint_PM.[Machine ID]
From Maint_PM
Where (Between (([Forms]![Date Range]![StartDate]) And ([Forms]![Date Range]![EndDate])))
UNION ALL Select Maint_UM.[Machine ID]
From Maint_UM
Where (Between (([Forms]![Date Range]![StartDate]) And ([Forms]![Date Range]![EndDate])))
It keeps telling me there is a missing operator in my between statement, but from what I have read I thought I had it correct.
I am trying to give a list of machines based on a start date and end date from a form called Date Range. Any help will be greatly appreciated.
Brett
Last edited: