Greetings, I have the following query that I am trying to use to pull some information from Sage 100: SELECT AR_Salesperson.SalespersonName, AR_CustomerSalespersonHistory.CustomerNo, AR_CustomerSalespersonHistory.FiscalYear, AR_CustomerSalespersonHistory.FiscalPeriod, AR_CustomerSalespersonHistory.DollarsSold, AR_CustomerSalespersonHistory.DateUpdated, datepart(qq, AR_CustomerSalespersonHistory.DateUpdated) AS SageQuarter FROM AR_CustomerSalespersonHistory AR_CustomerSalespersonHistory, AR_Salesperson AR_Salesperson WHERE AR_CustomerSalespersonHistory.SalespersonNo = AR_Salesperson.SalespersonNo AND AR_CustomerSalespersonHistory.SalespersonDivisionNo = AR_Salesperson.SalespersonDivisionNo Group by datepart(qq, AR_CustomerSalespersonHistory.DateUpdated) However when I try to perform this query (tried from both MS Query via Excel as well as MSACCESS) I receive the following error: ODBC--call failed. [ProvideX][ODBC Driver]Expected lexical element not found:FROM (#1015) Is there a way I could perform this query? Thanks
↧