Results 1 to 2 of 2
  1. #1
    parisienne is offline Novice
    Windows XP Access 2003
    Join Date
    Apr 2011
    Posts
    1

    Syntax error missing operator(3075)

    Hi,
    I'm kinder of new to access and I need help finding out what is wrong with the following VB coding.
    I created a report from a query to search a specific record based on analyst name
    I created a search from and out combo box to select the name and it will display the report with the name called.

    Private Sub Command2_Click()
    Dim stDocName As String
    Dim stLinkCriteria As String
    stDocName = "Search_Report"


    stLinkCriteria = "[AnalystName]=" & Me![CboAnalyst]

    stLinkCriteria = "[Analyst_Name]=" & Me![CboAnalyst]
    DoCmd.OpenReport stDocName, , , stLinkCriteria
    Exit_Command2_Click:
    Exit Sub

    The analyst name on the report is in this format(john smith). Im not sure if this is the reason why I'm getting this error message.
    Please help

  2. #2
    pbaldy's Avatar
    pbaldy is offline Who is John Galt?
    Windows XP Access 2007
    Join Date
    Feb 2010
    Location
    Nevada, USA
    Posts
    21,712
    The syntax is slightly different for a text value:

    BaldyWeb wherecondition
    Paul (wino moderator)
    MS Access MVP 2007-2019
    www.BaldyWeb.com

Please reply to this thread with any new information or opinions.

Similar Threads

  1. Syntax Error...missing operator
    By jgelpi16 in forum Programming
    Replies: 14
    Last Post: 09-09-2010, 11:35 AM
  2. Runtime 3075 error
    By whm1 in forum Programming
    Replies: 4
    Last Post: 03-24-2010, 02:50 PM
  3. Error 3075 Missing Operator
    By KLynch0803 in forum Queries
    Replies: 5
    Last Post: 02-11-2010, 01:13 PM
  4. Replies: 1
    Last Post: 10-07-2009, 07:36 AM
  5. Missing Operator error
    By data123 in forum Forms
    Replies: 1
    Last Post: 03-15-2009, 04:34 PM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
Other Forums: Microsoft Office Forums - Senior Forums