Could you guys take a look at this query please. Doing ym head in now.
posts say it is down to the brackets not being the wrong place but i'm sure i've tried every way possible!!
I keep getting join expression not support. I also know that the whole syntax could be wrong but someone can help with the joins then i'll crack the rest.
Thanks in advance!
posts say it is down to the brackets not being the wrong place but i'm sure i've tried every way possible!!
I keep getting join expression not support. I also know that the whole syntax could be wrong but someone can help with the joins then i'll crack the rest.
Code:
SQLrefresh = "SELECT [Otto Item Prices].PRPROD AS [Debs Item] " & vbCrLf & _
"FROM (([All days] LEFT JOIN [Otto Item Prices] ON [All days].iteOpt = [Otto Item Prices].Otto_Item) INNER JOIN INTERFACE_SVWSODDP ON [Otto Item Prices].PRPROD = INTERFACE_SVWSODDP.SDPROD) " & vbCrLf & _
"WHERE ((([Otto Item Prices].ATP)>=1) AND (([All days].Status)=""OS"" Or ([All days].Status)=""WN"") AND (([All days].Cancel_Date)= date() AND ((INTERFACE_SVWSODDP.SDFEEDTIME)<Date()));"
Thanks in advance!