[microsoft][odbc microsoft access driver] syntax error (missing operator) in query expression error

Ask a Question related to MySQL, Design and Development.

  1. #1

    Default [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

    [microsoft][odbc microsoft access driver] syntax error (missing
    operator) in query expression

    error when you go to save it.


    The query I want to run is this:


    SELECT m1.start_date, m1.end_date, m1.start_time, m1.end_time,
    m1.match_id, t1.team_name AS team1_name, t2.team_name AS team2_name,
    s1.stadium_name AS stadium, type.type_title as type,
    channels.channel_name as channels
    FROM matches AS m1
    LEFT JOIN teams AS t1 ON m1.team1_id = t1.team_id
    LEFT JOIN teams AS t2 ON m1.team2_id = t2.team_id
    LEFT JOIN stadiums AS s1 ON m1.stadium_id = s1.stadium_id
    LEFT JOIN type AS type ON m1.matches_sport_id = type.type_id
    LEFT JOIN channels AS channels ON m1.channel_id = channels.channel_id





    Can anyone see any reason why this query will not run?

    Any help would be very much appreciated.

    Dylan James

    dylan 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] Could not start session.
      Does anyone know what this problem means??? Microsoft OLE DB Provider for ODBC Drivers error '80004005' Could not start session. ...
    3. [Microsoft][ODBC Microsoft Access Driver]'(unknown)' is not a valid path error
      This is probably an old problem that most of you know how to fix (I hope!). The scenario is that I have a web server running an ASP site that needs...
    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: [microsoft][odbc microsoft access driver] syntax error (missingoperator) in query expression error

    dylan wrote:
    > I have a query I want to run using DBQwiksite siftware, which produces
    > the
    >
    > [microsoft][odbc microsoft access driver] syntax error (missing
    > operator) in query expression
    >
    > error when you go to save it.
    >
    >
    > The query I want to run is this:
    >
    >
    > SELECT m1.start_date, m1.end_date, m1.start_time, m1.end_time,
    > m1.match_id, t1.team_name AS team1_name, t2.team_name AS team2_name,
    > s1.stadium_name AS stadium, type.type_title as type,
    > channels.channel_name as channels
    > FROM matches AS m1
    > LEFT JOIN teams AS t1 ON m1.team1_id = t1.team_id
    > LEFT JOIN teams AS t2 ON m1.team2_id = t2.team_id
    > LEFT JOIN stadiums AS s1 ON m1.stadium_id = s1.stadium_id
    > LEFT JOIN type AS type ON m1.matches_sport_id = type.type_id
    > LEFT JOIN channels AS channels ON m1.channel_id = channels.channel_id
    >
    >
    >
    >
    >
    > Can anyone see any reason why this query will not run?
    >
    > Any help would be very much appreciated.
    >
    > Dylan James
    >
    Might I suggest an access newsgroup? This one is for MySQL.

    --
    ==================
    Remove the "x" from my email address
    Jerry Stuckle
    JDS Computer Training Corp.
    [email]jstucklex@attglobal.net[/email]
    ==================
    Jerry Stuckle Guest

  4. #3

    Default Re: [microsoft][odbc microsoft access driver] syntax error (missing operator) in query expression error

    Well I'm using mySQL! That's my problem.




    Jerry Stuckle wrote:
    > dylan wrote:
    > > I have a query I want to run using DBQwiksite siftware, which produces
    > > the
    > >
    > > [microsoft][odbc microsoft access driver] syntax error (missing
    > > operator) in query expression
    > >
    > > error when you go to save it.
    > >
    > >
    > > The query I want to run is this:
    > >
    > >
    > > SELECT m1.start_date, m1.end_date, m1.start_time, m1.end_time,
    > > m1.match_id, t1.team_name AS team1_name, t2.team_name AS team2_name,
    > > s1.stadium_name AS stadium, type.type_title as type,
    > > channels.channel_name as channels
    > > FROM matches AS m1
    > > LEFT JOIN teams AS t1 ON m1.team1_id = t1.team_id
    > > LEFT JOIN teams AS t2 ON m1.team2_id = t2.team_id
    > > LEFT JOIN stadiums AS s1 ON m1.stadium_id = s1.stadium_id
    > > LEFT JOIN type AS type ON m1.matches_sport_id = type.type_id
    > > LEFT JOIN channels AS channels ON m1.channel_id = channels.channel_id
    > >
    > >
    > >
    > >
    > >
    > > Can anyone see any reason why this query will not run?
    > >
    > > Any help would be very much appreciated.
    > >
    > > Dylan James
    > >
    >
    > Might I suggest an access newsgroup? This one is for MySQL.
    >
    > --
    > ==================
    > Remove the "x" from my email address
    > Jerry Stuckle
    > JDS Computer Training Corp.
    > [email]jstucklex@attglobal.net[/email]
    > ==================
    dylan Guest

  5. #4

    Default Re: [microsoft][odbc microsoft access driver] syntax error (missingoperator) in query expression error

    dylan wrote:
    > Well I'm using mySQL! That's my problem.
    >
    >
    >
    >
    > Jerry Stuckle wrote:
    >
    >
    >>dylan wrote:
    >>
    >>>I have a query I want to run using DBQwiksite siftware, which produces
    >>>the
    >>>
    >>>[microsoft][odbc microsoft access driver] syntax error (missing
    >>>operator) in query expression
    >>>
    >>>error when you go to save it.
    >>>
    >>>
    >>>The query I want to run is this:
    >>>
    >>>
    >>>SELECT m1.start_date, m1.end_date, m1.start_time, m1.end_time,
    >>>m1.match_id, t1.team_name AS team1_name, t2.team_name AS team2_name,
    >>>s1.stadium_name AS stadium, type.type_title as type,
    >>>channels.channel_name as channels
    >>>FROM matches AS m1
    >>>LEFT JOIN teams AS t1 ON m1.team1_id = t1.team_id
    >>>LEFT JOIN teams AS t2 ON m1.team2_id = t2.team_id
    >>>LEFT JOIN stadiums AS s1 ON m1.stadium_id = s1.stadium_id
    >>>LEFT JOIN type AS type ON m1.matches_sport_id = type.type_id
    >>>LEFT JOIN channels AS channels ON m1.channel_id = channels.channel_id
    >>>
    >>>
    >>>
    >>>
    >>>
    >>>Can anyone see any reason why this query will not run?
    >>>
    >>>Any help would be very much appreciated.
    >>>
    >>>Dylan James
    >>>
    >>
    >>Might I suggest an access newsgroup? This one is for MySQL.
    >>
    >>--
    >>==================
    >>Remove the "x" from my email address
    >>Jerry Stuckle
    >>JDS Computer Training Corp.
    >>jstucklex@attglobal.net
    >>==================
    >
    >
    Then why does it say 'odbc microsoft access driver'?

    I think your problem lies somewhere else.
    --
    ==================
    Remove the "x" from my email address
    Jerry Stuckle
    JDS Computer Training Corp.
    [email]jstucklex@attglobal.net[/email]
    ==================
    Jerry Stuckle Guest

  6. #5

    Default Re: [microsoft][odbc microsoft access driver] syntax error (missingoperator) in query expression error

    dylan wrote:
    > Well I'm using mySQL! That's my problem.
    My understanding is that the error says "[microsoft][odbc microsoft
    access driver]" indicates that it's trying to run the query against
    Microsoft Access (i.e. the Jet engine). It is not running it against
    MySQL. If you were using the MySQL ODBC driver for the connection, the
    error would start like this: "[MySQL][ODBC 3.51 Driver]".

    Jet doesn't understand the JOIN syntax with multiple joins. You have to
    use parentheses. In other words, this works in MySQL:

    A JOIN B ON <condition_AB>
    JOIN C ON <condition_BC>

    But in MS Access, you have do this:

    A JOIN (
    B JOIN C ON <condition_BC>
    ) ON <condition_AB>

    So either write your SQL joins in accordance with MS Access's syntax, or
    else change your ODBC DSN to utilize the MySQL ODBC driver and connect
    to a MySQL database.

    Regards,
    Bill K.
    Bill Karwin Guest

  7. #6

    Default Re: [microsoft][odbc microsoft access driver] syntax error (missing operator) in query expression error

    Hi,


    Thanks guys, I will try what you suggested Bill. I'm still waiting for
    the dbqwiksite support team to provide me with a suitable anwswer, it
    seems like another bug in their software, as it asks you which database
    you want to use and I selected mySQL....

    Thanks,

    Dylan

    Bill Karwin wrote:
    > dylan wrote:
    > > Well I'm using mySQL! That's my problem.
    >
    > My understanding is that the error says "[microsoft][odbc microsoft
    > access driver]" indicates that it's trying to run the query against
    > Microsoft Access (i.e. the Jet engine). It is not running it against
    > MySQL. If you were using the MySQL ODBC driver for the connection, the
    > error would start like this: "[MySQL][ODBC 3.51 Driver]".
    >
    > Jet doesn't understand the JOIN syntax with multiple joins. You have to
    > use parentheses. In other words, this works in MySQL:
    >
    > A JOIN B ON <condition_AB>
    > JOIN C ON <condition_BC>
    >
    > But in MS Access, you have do this:
    >
    > A JOIN (
    > B JOIN C ON <condition_BC>
    > ) ON <condition_AB>
    >
    > So either write your SQL joins in accordance with MS Access's syntax, or
    > else change your ODBC DSN to utilize the MySQL ODBC driver and connect
    > to a MySQL database.
    >
    > Regards,
    > Bill K.
    dylan Guest

  8. #7

    Default Re: [microsoft][odbc microsoft access driver] syntax error (missingoperator) in query expression error

    dylan wrote:
    > Hi,
    >
    >
    > Thanks guys, I will try what you suggested Bill. I'm still waiting for
    > the dbqwiksite support team to provide me with a suitable anwswer, it
    > seems like another bug in their software, as it asks you which database
    > you want to use and I selected mySQL....
    >
    > Thanks,
    >
    > Dylan
    >
    > Bill Karwin wrote:
    >
    >>dylan wrote:
    >>
    >>>Well I'm using mySQL! That's my problem.
    >>
    >>My understanding is that the error says "[microsoft][odbc microsoft
    >>access driver]" indicates that it's trying to run the query against
    >>Microsoft Access (i.e. the Jet engine). It is not running it against
    >>MySQL. If you were using the MySQL ODBC driver for the connection, the
    >>error would start like this: "[MySQL][ODBC 3.51 Driver]".
    >>
    >>Jet doesn't understand the JOIN syntax with multiple joins. You have to
    >>use parentheses. In other words, this works in MySQL:
    >>
    >>A JOIN B ON <condition_AB>
    >> JOIN C ON <condition_BC>
    >>
    >>But in MS Access, you have do this:
    >>
    >>A JOIN (
    >> B JOIN C ON <condition_BC>
    >> ) ON <condition_AB>
    >>
    >>So either write your SQL joins in accordance with MS Access's syntax, or
    >>else change your ODBC DSN to utilize the MySQL ODBC driver and connect
    >>to a MySQL database.
    >>
    >>Regards,
    >>Bill K.
    >
    >
    Dylan,

    No, I would think this would more probably be ODBC definition. Are you
    sure the database is defined using the MySQL driver? Are you sure
    you're using the correct database (instead of something similarly named)?


    --
    ==================
    Remove the "x" from my email address
    Jerry Stuckle
    JDS Computer Training Corp.
    [email]jstucklex@attglobal.net[/email]
    ==================
    Jerry Stuckle 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