Missing Operator Error in Access

Ask a Question related to ASP Database, Design and Development.

  1. #1

    Default Missing Operator Error in Access

    I'm trying to install a freebie app downloaded from the web.

    Its based on an Access Db, and I'm getting the a missing operator error for
    the following SQL:

    SELECT COUNT(DatabaseUsers.database_id) As Total FROM Users INNER JOIN
    DatabaseUsers ON Users.username = DatabaseUsers.user_id INNER JOIN Databases
    ON DatabaseUsers.database_id = Databases.ID WHERE Users.username = ''

    I've imported the DB in to SQL server to test in Query Analyser, and this
    SQL works fine...

    Any ideas?

    TIA

    Chris


    CJM Guest

  2. Similar Questions and Discussions

    1. Syntax error (missing operator) in query expression
      Hi, I have received the following error: ODBC Error Code = 37000 (Syntax error or access violation) Syntax error (missing operator) in query...
    2. [microsoft][odbc microsoft access driver] syntax error (missing operator) in query expression error
      I have a query I want to run using DBQwiksite siftware, which produces the syntax error (missing operator) in query expression error when...
    3. Access: (missing operator) in query expression
      Hi! I operate a database where visitors do inputs directly from the web thru a form. One field has the datatype (property?) Memo and I have not...
    4. Syntax error (missing operator) in query expression'idProperty='
      The following is the code, can someone please help me with the syntax please in the first line please Conn.Execute "UPDATE tblRentalProperty SET...
    5. syntax error (missing operator) query expression
      valuA = (request.form("toadd")) If valuA = "" then SQL = "UPDATE CourseReg SET attended='Active' WHERE ID IN("&request.form("toadd")&")" Set RS =...
  3. #2

    Default Re: Missing Operator Error in Access

    You need to use () around the joins in Access.

    SELECT
    COUNT(DatabaseUsers.database_id) As Total
    FROM
    (
    (
    Users
    INNER JOIN
    DatabaseUsers
    )
    INNER JOIN
    Databases
    ON
    DatabaseUsers.database_id = Databases.ID
    )
    ON
    Users.username = DatabaseUsers.user_id
    WHERE
    Users.username = ''

    (I think that's correct - best bet is to build the Query in the Access Query
    builder - you'll see how Access puts in the brackets for you).

    Cheers
    Ken



    "CJM" <cjmwork@yahoo.co.uk> wrote in message
    news:%23YV9t%23sRDHA.3768@tk2msftngp13.phx.gbl...
    : I'm trying to install a freebie app downloaded from the web.
    :
    : Its based on an Access Db, and I'm getting the a missing operator error
    for
    : the following SQL:
    :
    : SELECT COUNT(DatabaseUsers.database_id) As Total FROM Users INNER JOIN
    : DatabaseUsers ON Users.username = DatabaseUsers.user_id INNER JOIN
    Databases
    : ON DatabaseUsers.database_id = Databases.ID WHERE Users.username = ''
    :
    : I've imported the DB in to SQL server to test in Query Analyser, and this
    : SQL works fine...
    :
    : Any ideas?
    :
    : TIA
    :
    : Chris
    :
    :


    Ken Schaefer Guest

  4. #3

    Default RE: Missing Operator Error in Access

    You may try

    SELECT COUNT(DatabaseUsers.database_id) As Total
    FROM (Users INNER JOIN DatabaseUsers ON Users.username =
    DatabaseUsers.user_id )
    INNER JOIN Databases ON DatabaseUsers.database_id = Databases.ID
    WHERE Users.username = ''

    HTH

    Luke

    (This posting is provided "AS IS", with no warranties, and confers no
    rights.)

    Luke Zhang [MSFT] Guest

Posting Permissions

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

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139