I have multiple tables joined in the query so my SELECT statement is quite long. It errors when I add this though:
Code:
SELECT DISTINCT dbo_MasterData.OrderNumber FROM
The error it gives is Syntax error (missing operator) in query expression 'DISTINCT dbo_MasterData.OrderNumber'.
The code looks like this right now and it works, but there are duplicate order numbers that I'm trying to filter:
Code:
SELECT dbo_MasterCustomer.CustomerCity, dbo_MasterCustomer.CustomerFirstName, dbo_MasterCustomer.CustomerLastName, dbo_MasterData.OrderNumber FROM