Results 1 to 2 of 2
  1. #1
    2 Star Lounger
    Join Date
    Aug 2005
    Posts
    132
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Syntax error (Access 2000)

    In my form i have an option box called office and i want to filter the form in this way :

    Me.RecordSource = " SELECT Customers.* FROM Customers" & _
    "WHERE (((Customers.afid)= " & Me.Office & ")) And Customers.MyOffice = False " & _
    " ORDER BY Customers.CompanyName"

    I get the syntax error 3075 Missing operator.cn you help ?

  2. #2
    Plutonium Lounger
    Join Date
    Mar 2002
    Posts
    84,353
    Thanks
    0
    Thanked 29 Times in 29 Posts

    Re: Syntax error (Access 2000)

    Insert a space before WHERE.

    Is afid a number field or a text field?

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •