I am trying to create a query that uses the values of two calendar controls as between criteria. If I hard code a date for the between criteria, the query runs fine even from the form. If I try to use this for the criteria:
Between [Forms]![MonthlyReport]![txt_StartDate] And [Forms]![MonthlyReport]![txt_StopDate]
Then the sub that is actually running the query (I want to get the results into a recordset) throws an invalid SQL statement error. Any help would be great.
[blue]"Well, once again my friend, we find that science is a two headed beast. One head is nice, it gives us aspirin and other modern conveniences,...but the other head of science is BAD! Oh, beware the other head of science, Arthur; it bites!!" - The Tick[/blue]
Between [Forms]![MonthlyReport]![txt_StartDate] And [Forms]![MonthlyReport]![txt_StopDate]
Then the sub that is actually running the query (I want to get the results into a recordset) throws an invalid SQL statement error. Any help would be great.
[blue]"Well, once again my friend, we find that science is a two headed beast. One head is nice, it gives us aspirin and other modern conveniences,...but the other head of science is BAD! Oh, beware the other head of science, Arthur; it bites!!" - The Tick[/blue]