SELECT A.CompanyCode, C.IndustryCode, B.Risk, B.PeriodEndDate
FROM (CompanyDetails AS A INNER JOIN CompanyFigures AS B ON A.CompanyKey = B.CompanyKey) INNER JOIN tblSubIndustry AS C ON B.SubIndustryCode = C.SubIndustryCode
WHERE C.IndustryCode = [IndCode]
AND B.PeriodEndDate BETWEEN #01/06/2002# AND #31/02/2003#;
when i run it i get an error saying
Syntax error in date in query expression 'C.IndustryCode = [IndCode]
AND B.PeriodEndDate BETWEEN #01/06/2002# AND #31/02/2003#'
FROM (CompanyDetails AS A INNER JOIN CompanyFigures AS B ON A.CompanyKey = B.CompanyKey) INNER JOIN tblSubIndustry AS C ON B.SubIndustryCode = C.SubIndustryCode
WHERE C.IndustryCode = [IndCode]
AND B.PeriodEndDate BETWEEN #01/06/2002# AND #31/02/2003#;
when i run it i get an error saying
Syntax error in date in query expression 'C.IndustryCode = [IndCode]
AND B.PeriodEndDate BETWEEN #01/06/2002# AND #31/02/2003#'