Error #3070 MS Access database engine does not recognize " as valid name or expression
I am using a form to enter criteria into a query using select and crosstab query to generate a report. Parameters are defined in all queries used, date formats are consistent throughout. When I enter a date using a single digit month such as 07/01/2016
as start date, and 07/31/16 as end date, queries and report run with no problem..... resulting data is correct. If I use a date with a two digit month such as 11/01/2016 to 11/30/2016, I get the error message and all stops. It is only the months of 10,
11, and 12 that the query will not read.
PARAMETERS [Forms]![TypeRptCriteria]![Start] DateTime, [Forms]![TypeRptCriteria]![End] DateTime;
SELECT [CATS Stats].ID, [CATS Stats].[Type of Cancer], Gender1_Crosstab.[Family Member], [CATS Stats].Age, [CATS Stats].Gender, Gender1_Crosstab.Female, Gender1_Crosstab.Male, [CATS Stats].Ethnicity, [CATS Stats].[Zip Code], [CATS Stats].[Referral Date], [CATS
Stats].[Referral Source], [CATS Stats].[Start Date], [CATS Stats].[End Date], [CATS Stats].[Sessions Offered], [CATS Stats].Referral, [CATS Stats].[Pre Score], [CATS Stats].[Post Score], Year([Start Date]) AS [Year]
FROM [CATS Stats] LEFT JOIN Gender1_Crosstab ON ([CATS Stats].[Family Member] = Gender1_Crosstab.[Family Member]) AND ([CATS Stats].[Type of Cancer] = Gender1_Crosstab.[Type of Cancer])
WHERE ((([CATS Stats].[Start Date]) Between [Forms]![TypeRptCriteria]![Start] And [Forms]![TypeRptCriteria]![End])) OR ((([Forms]![TypeRptCriteria]![Start]) Is Null) AND (([Forms]![TypeRptCriteria]![End]) Is Null));
Any possible solutions would be greatly appreciated!
RonMNJ