Error in FROM clause (MS Access)

I'm getting an 'error executing a database query.' The query
is a simple
<cfquery name="myquery" datasource="#application.dsn#">
SELECT *
FROM #url.table#
</cfquery>
The debugging info i get is as follows:
SELECT * FROM Order
VENDORERRORCODE -3506
SQLSTATE 42000
It also states the error is in the FROM clause and only
happens when url.table is Order, not the other table names. I know
the order table exists because i get a nonexistent table name error
when url table is a bogus table name. This implies that
it knows the order table exists but says there's an error in
the FROM clause. The query is successful on all the other tables in
my db (MS access, i'm using the access driver without unicode). Any
ideas?

order is a reserved word...you'll need to escape it using
brackets
FROM [order]
HTH
Tim Carley
www.recfusion.com
[email protected]

Similar Messages

  • Syntax error in From clause from Access

    I am trying to migrate a database from Access 2000, and all of the tables except one migrate correctly. The one problem table gives me the following error message:
    Unable to migrate table data: NWQ_TANC.PARAMETERS; [Microsoft][ODBC Microsoft Access Driver] Syntax error in FROM clause.
    Does anyone know how to fix this? I have found the error in the help Appendix, but it just lists it as a QUERY type error, #3131, and gives no explanation or clues on how to fix it.
    Thanks, Jessica

    Hi Jessica
    Just wondering if you ever managed to find a solution to this problem, as I am getting a very similar error - only I don't just get it for one table, I get it for every single table in the database!
    Would be very interested to hear if you managed to sort it or not
    Cheers
    Ed

  • Error in FROM clause

    hi,
    ok i have a piece of code which looks like
    ResultSet rs = stmt.executeQuery("SELECT OrderDate, ProdNumber, Quantity, Price, OrderNumber FROM Order WHERE EmailAddress='" + email + "'");
    when i execute it... i get following error
    java.sql.SQLException: [Microsoft][ODBC Microsoft Access Driver] Syntax error in FROM clause.
    i don't think there is any problem with syntax...
    thanx in advance

    Hey the escape character in java is \ you need to use that to escape the property of " for eg you will write like this ResultSet rs = stmt.executeQuery("SELECT OrderDate, ProdNumber, Quantity, Price, OrderNumber FROM Order WHERE EmailAddress= "\""+ email + "\"");
    try this and let me know if it works

  • Exception: DBD, [Microsoft][ODBC Excel Driver] Syntax error in FROM clause.

    Dear experts,
    I'm trying to create an universe linked to an Excel File.
    I've created the ODBc connection and the DNS Data Source and inserted the table (table name RAC$) in the Universe. however, when I try to map each table field in the universe's Objects I'm getting this error message:
    "Exception: DBD, [ODBC Excel Driver] Syntax error in FROM clause.State:37000".
    I've tried to rename the table, inserting square brackects and also add new parameters to the universe («Transactional Available = "Yes"» and «Delimited Identifier = "Yes"») but still no solution to my problem.
    Any advice, tip or trick?
    Thank you. My best regards.
    Inês Santos

    Hi Ines,
    Thanks for sharing how you resolved this! I will bookmark this so that I can find it when I will likely need it!
    Bill
    Sorry I don't know how to make the accent circumflex! Or is that what you call it? On top of the e?
    Edited by: wavery on Jun 11, 2010 12:07 AM
    Edited by: wavery on Jun 11, 2010 12:09 AM

  • Stupid question: whats wrong here? -- Syntax Error in FROM clause

    i keep getting the error: Syntax Error in FROM clause.
    here is the code:
    <%@ page import="java.sql.*" %>
    <HTML>
    <HEAD>
         <TITLE>User Application Area</TITLE>
    </HEAD>
    <BODY BGCOLOR="#FFFFFF" TEXT="#000000">
    <%
    Class.forName("sun.jdbc.odbc.JdbcOdbcDriver");
    Connection con = DriverManager.getConnection("jdbc:odbc:fypproject","","");
    Statement st = con.createStatement();
    String email = (String)session.getAttribute("email");
    String levelStatus = (String)session.getAttribute("levelStatus");
    String details = "SELECT PD.Forename, PD.Surname, L.Level_Name FROM PD Personal_Details AND LD Login_Details AND L Level WHERE PD.Email_Address = LD.Email_Address AND LD.Level_ID = L.Level_ID AND Level_ID = '" + levelStatus + "'";
    ResultSet rsDet = st.executeQuery(details);
    if(rsDet.next()) {
    String forename = rsDet.getString("Forename");
    String surname = rsDet.getString("Surname");
    String level_name = rsDet.getString("Level_Name");
    %>
    <DIV ALIGN="center"><H1>User Application Arena</H1></DIV>
    <BR>
    <H4>Welcome back <% out.println(forename + " " + surname); %> </H4>
    <BR>
    <%
    out.println(level_name);
    else {
    out.println("NOT FOUND ANYTHING");
    st.close();
    con.close();
    %>
    </BODY>
    </HTML>
    the strange thing is when i write a query that doesn't involve the 'Level' table it works fine.
    for example if i just want to display the forename and surname from 'Personal_Details' where the Email_Address = email it works fine...as soon as i involve the 'Level' table i get this error.
    i basically have 'Level_ID' in the 'Login_Details' table which is found out in the preceding jsp and passed through to this page and i can print out the Level_ID
    but....what i want to do is use this Level_ID and find the respective Level_Name in the Level table.
    my Level table looks like this:
    Level_ID Level_Name
    0 Pending
    1 Interview
    2 Rejection
    Thanks :o)

    Perhaps this is your issue ...
    The column Level_ID is in both the Login_Details and Level tables. Therefore, in your WHERE clause, you must specify a table alias for each reference to Level_ID
    WHERE PD.Email_Address = LD.Email_Address AND LD.Level_ID = L.Level_ID AND Level_ID = '" + levelStatus + "'";
    should be
    WHERE PD.Email_Address = LD.Email_Address AND LD.Level_ID = L.Level_ID AND L.Level_ID = '" + levelStatus + "'"; //ADDED "L." before Level_ID
    Level_ID would have been unique until you added the Level table.
    Good luck.
    -Mark

  • Error in FROM clause of query

    I've looked this over TONS of times and compared my query to the query in the tutorial and cannot figure out the error. Here's my SQL query:
    select extractValue(value(t),'/*/id') "ID",
    extractValue(value(t),'/*/key') "Key",
    extractValue(value(t),'/*/featurelevel') "Feature Level",
    extractValue(value(t),'/*/title') "Title"
    extractValue(value(t),'/*/description') "Description",
    extractValue(value(t),'/*/plaindesc') "Plain Description",
    extractValue(value(t),'/*/location/city') "City",
    extractValue(value(t),'/*/location/state') "State",
    extractValue(value(t),'/*/location/zip') "Zip Code",
    extractValue(value(t),'/*/location/country') "Country",
    extractValue(value(t),'/*/company/name') "Company",
    extractValue(value(t),'/*/detail-url') "URL",
    extractValue(value(t),'/*/post-date') "Post Date"
    from apex_collections c,
    table(xmlsequence(extract(xmltype.createxml(c.clob001),'/job-list/job'))) t
    where c.collection_name = 'JOB_RESPONSE'
    Here's the resulting error message:
    1 error has occurred
    •     Query cannot be parsed, please check the syntax of your query. (ORA-00923: FROM keyword not found where expected)
    And here's the query in the tutorial which works fine:
    select extractValue(value(t),'/*/title') "Title",
    extractValue(value(t),'/*/description') "Description",
    extractValue(value(t),'/*/pubDate') "Date",
    extractValue(value(t),'/*/author') "Author"
    from apex_collections c,
    table(xmlsequence(extract(xmltype.createxml(c.clob001),'/rss/channel/item'))) t
    where c.collection_name = 'RSS_RESPONSE'
    What am I missing? Any thoughts? Thanks in advance!

    The line
    extractValue(value(t),'/*/title') "Title"doesn't have a comma after the alias "Title"
    HTH
    Regards Nigel

  • Error. your computer must be running a supported version of Microsoft Visio and a browser that supports opening files directly from Visio Web Access.

    I have the following inside my SharePoint server 2013 :-
    EnterPrise Wiki site collection.
    i have both "Excel services Application "& "Visio Graphics Service" running correctly.
    The problem i am facing is as follow:-
    when a user click on an Excel sheet or Visio document , it will be shown inside the browser without any problem.
    but if the user click on "Open in Visio" OR "Open in Excel" links inside the browser, they will get the following errors:-
    Sorry, but to open this workbook, your computer must be running a supported version of Microsoft Excel and a browser that supports opening files directly from Office Web Apps.
    To open this document, your computer must be running a supported version of Microsoft Visio and a browser that supports opening files directly from Visio Web Access.
    I have the following settings inside my PC:-
    Office 2010 for Excel, word, power point,etc.
    Visio 2013.
    i have disabled SharePoint foundation support for office 2013
    Can anyone advice on this please?

    Hi,
    Please try to reset the Internet Explorer settings or open Internet Explorer in In-Private browsing and then check if this issue occurs.
    If the issue persists, please try to access SharePoint in another computer with Office 2013 and then check if this issue occurs. Or repair Office and restart your server.
    Here is a blog about the same issue for you to take a look at:
    http://sharepointexit.blogspot.com/2013/12/sorry-but-to-open-this-workbook.html
    Best Regards
    Dennis Guo
    TechNet Community Support

  • Error while trying to submit Access request to GRC from IDM

    Hello
    We have SAP IDM 7.2 SP8 installed and done all the prerequisite for connecting to GRC AC 10 as in configuration document.
    We are trying to submit request to GRC using Standard GRC provisioning framework task ( AC Validation) but pass: Submit AC Request fails with error: "Pass stopped by script"
    Is there anything wrong with the script which put RoleData details since its getting aborted ?
    I tried providing Role name directly in Role data attribute inside the action task and got following error:
    Error
    putNextEntry failed
    storingcn=IDMUSR0023,ou=useraccessrequest,o=grc
    Exception from Add operation:javax.naming.NamingException: [LDAP: error code
    82 - (GRC User Access Request:82:Script execution failed)]; remaining name
    'cn=IDMUSR0023,ou=useraccessrequest,o=grc'
    I checked VDS Logs and there was one error :
    Additional message = msgcode=4;msgdescription=Mandatory field ITEM NAME  is empty in line no 1 ;msgtype=ERROR
    From where exactly ITEM NAME field value will be fetched and pass to GRC for request creation ?
    Regards
    Deepak Gupta

    Thanks Christopher
    I got my issue fixed, There was issue with my GRC Initial load job which couldn't enrich repository privileges and hence the issue was coming since script wasn't able to find GRC ROLE ID and Application ID attribute from privileges.
    Regards
    Deepak Gupta

  • I am using Adobe Reader with paid up service through May 2015.  When I attempt to convert a file from PDF or to PDF, I get the message "An error occured while trying to access the service.  What do I need to do to access the service paid for?

    I am using Adobe Reader with paid up service through May 2015.  When I attempt to convert a file either to PDF or from PDF, I get the error message, "An error occurred while trying to access the service".  What do I need to do to get access to the service I have paid for?

    Hi DeaconTomColorado,
    Please see "Error occurred when trying to access this service" when logging on to Acrobat.com.
    Adobe has just released an update to Adobe Reader, so if you're accessing the service via Reader, please let us know whether the update helps resolve the issue.
    Best,
    Sara

  • Adobe Illustrator CS4 Error: Error 1603. Error 1305.Error reading from file C:\Program Files\Adobe\Adobe Illustrator CS4\Support Files\Required\Fonts\AdobeSongStd-Light.otf.  Verify that the file exists and that you can access it.  AdobeColorCommonSetRGB

    Iam trying to load illustator in my PC i get following error while loading Application CD 2
    Adobe Illustrator CS4
    Error:
    Error 1603. Error 1305.Error reading from file C:\Program Files\Adobe\Adobe Illustrator CS4\Support Files\Required\Fonts\AdobeSongStd-Light.otf. Verify that the file exists and that you can access it.
    AdobeColorCommonSetRGB
    Error:
    Error 2.
    My serial no. [Removed by moderator]

    Download a copy an installer for CS4 from the links on this page:
    Other downloads

  • SYSTEM ERROR : com/adobe.processingexception:Problem accessing data from De

    Hi SAP Guru,
    We have configured ADOBE for separate ABAP server and Java Server.
    But when I am execution report FP_TEST_00 getting below error
    ADS: com.adobe.ProcessingException: Problem accessing d(200101) Message no. FPRUNX001
    FP_CHECK_DESTINATION_SERVICE
    FP_CHECK_HTTP_DATA_TRANSFER giving error
    SYSTEM ERROR : com/adobe.processingexception:Problem accessing data from Destination dest :FP_ICF_DATA_IP1//sap/bc/fp/form/layout/FP_FORM_SECURITY_TEST.XDP?fp-language=DE
    But report fp_pdf_test_00 is giving postive response.
    I have troubles hooted according to note 944221 , my configuration is ok but no success.
    Please help to resolve this issue.

    Hi,
    Check your ADS Connection .
    Do one thing
    Go to T-code "SM59"  -  "RFC Destinations (Display/Maintain)"
    select "HTTP Connections to External Server" - > ADS
    Double click there and check the all the settings " Administrations "  ,  Technical setting , Logon and security , Special option .
    Please check the log on and pass word with the help of your SAP BASIS consultant it will work fine .

  • HT2914 Hello: I am very much a novice with Final Cut. I am trying to import some video files from my desktop but keep getting an error message that says, "File error 1 file recognized, 0 access denied, 1 unknown". The file type is .mov, 35MB, 1920 x 1080,

    Hello:
    I am very much a novice with Final Cut.  I am trying to import some video files from  my desktop but keep getting an error message that says, "File error  1 file recognized, 0 access denied, 1 unknown".  The file type is .mov, 35MB, 1920 x 1080, Codec MPEG-2 video linear PCM timecode, color profile HD (1+1+1).  Can someone help?  Thanks, Paul

    You can't import MPEG-2 files directly to FCP X.
    Can you play this file in Quicktime Player? If so, then you can use the free program MPEG Streamclip to convert this to Quicktime. Use the ProRes codec.

  • When i try to convert from PDF to word it says "an error occurred while trying to access the system". I've paid for this what is going on?!

    When i try to convert from PDF to word it says "an error occurred while trying to access the system". I've paid for this what is going on?!

    Hi,
    I have the same problem. Here is the screenshot of the error and I am using Windows 7 and Adobe Reader XI version 11.0.10.

  • When i try to import from itunes into FCP 7 i get error, file error; 39 files recognized,0 access denied 243 unknown

    When i try to import from itunes into FCP 7 i get error, file error; 39 files recognized,0 access denied 243 unknown

    Be careful,  FCP is an open system which is great, but it allows you to work with formats that are not completely compatible with fcp and can cause serious problems down the road.  You can check the formats of all audio files brought into fcp by selecting them in the browser and hitting command-9,  Use compressor to convert all audio files to 48k 16 bit aiffs before importing to fcp.  There's a preset for this format in the apple presets.  You mention video files.  The same thing holds.  In particular, avoid bringing in h264 quicktime movies.  Convert to an fcp friendly format like prores using compressor.

  • Nested query in FROM clause causes 'SQL Command not properly ended' error

    SELECT sj.job_id AS job_id, 'STATUS_AWAITING_PREPARATION' AS job_status, sjr.email_sys_attach_filename AS attach_filename, sje.emailaddr as emailaddr_lastsentto
                        FROM arsnd_jobs sj, (SELECT emailaddr from ARSND_JOB_EMAILS where job_id=sj.job_id AND ROW_NUM=1) as SJE, ARSND_JOB_QUEUE sjq,ARSND_JOB_RECIPIENTS sjr
                        WHERE sj.job_id=sjq.job_id and sj.job_id=sjr.job_id
                        AND sjq.PROCESSING_STATE=0
                        ORDER BY sj.created
    I don't see anything wrong with the above query, it fails with 'SQL Command not properly ended'.
    If I remove the usage of the nested query in the FROM clause, then it doesn't give that error. Please advice what I'm doing wrong.

    Pls try
    SELECT sj.job_id AS job_id, 'STATUS_AWAITING_PREPARATION' AS job_status, sjr.email_sys_attach_filename AS attach_filename, sje.emailaddr as emailaddr_lastsentto
    FROM arsnd_jobs sj, (SELECT emailaddr from ARSND_JOB_EMAILS where job_id=sj.job_id AND ROW_NUM=1) SJE, ARSND_JOB_QUEUE sjq,ARSND_JOB_RECIPIENTS sjr
    WHERE sj.job_id=sjq.job_id and sj.job_id=sjr.job_id
    AND sjq.PROCESSING_STATE=0
    ORDER BY sj.created
    I have removed the 'as' clause you used for alias of the subquery. It should work fine now.....

Maybe you are looking for

  • SAP R/3 4.6 C on Win 2003 Server, installation error.

    Hi all, I am trying to install SAP R/3 4.6C on a Windows 2003 server Enterprise edition. well at the time of the installation of Oracle 9.0, am I also suppose to create a database, I am using Oracle Universal installer, and it gives me an option to c

  • Creating moving clouds

    Hi I have this assignment where we have to use a display list. I am trying to create clouds moving on the background. I'm sure my code is very clumsy. I was able to get the clouds on my stage but I can only get one to move. Please, I can't seem to wr

  • Photo organizer frozen

    When I click to open adobe photoshop elements 8 it goes to the "welcome...learn more screen" and you can not click on organize or edit...it is all grey.  A few times I was able to get to the organizer early in the day and then if you would try anythi

  • Makepkg fakeroot failing

    I wrote a little program that I want to add to the AUR. After I completed the sources, I created a makefile, that works. ($make and #make install needed). I then made a tarball of the sources. Here are the build and install functions of the PKGBUILD

  • I was syncing my i phone 3gs and it said my back up was corrupt what do i do ?

    I was syncing my i pod and the computer said that my back up was corrupt , what do I do to sort it out ?