I am filtering the form depending on the option box called office but i get the syntax error 3075 missing operator.:
Dim SQL As String
SQL = ” SELECT [Increment]+[invoice] AS Paymentid, orders.invoicedate, TblPaid.paid, Customers.CompanyName, affiliates.afid, affiliates.CompanyName, orders.paymentid AS invoice” & _
” FROM ((orders LEFT JOIN TblPaid ON orders.orderid = TblPaid.orderid) INNER JOIN Customers ON orders.customerid = Customers.Customerid) INNER JOIN affiliates ON Customers.afid = affiliates.afid ” & _
” WHERE (((TblPaid.paid)=False Or (TblPaid.paid) Is Null) AND ((orders.paymentid)=True))”
Dim StrOffice As String
StrOffice = ” WHERE orders.afid=” & Me.Office & “”
Me.RecordSource = SQL & StrOffice
What is wrong with my expression ?
-
Syntax error (Access 2000)
- This topic has 2 replies, 2 voices, and was last updated 18 years, 3 months ago.
AuthorViewing 0 reply threadsAuthorViewing 0 reply threads