Results 1 to 3 of 3
  1. #1
    jskamm is offline Novice
    Windows XP Access 2007
    Join Date
    Sep 2012
    Posts
    3

    syntax error in from clause

    Using access 2007. Below is a query I've used in the past in my access database. Now I'm getting an syntax error message in the FROM clause, the FROM statement becomes highlighted when I try to save.


    Can someone tell me what's wrong with the From clause.

    INSERT INTO ildonotcallaccesstable ( phonenumber )
    SELECT ac & phone AS phonenumber
    FROM (TEXT;DATABASE=C:\do not call list) ildonotcalllist9_18_12.txt;

  2. #2
    jskamm is offline Novice
    Windows XP Access 2007
    Join Date
    Sep 2012
    Posts
    3
    Forgot to mention,

    I'm importing a text file into the access database. The text file has two columns, the first column is labeled ac, second labeled phone. I'm importing the two columns from the text file into one column into the access database. The column in the access database is labeled phonenumber.

  3. #3
    jskamm is offline Novice
    Windows XP Access 2007
    Join Date
    Sep 2012
    Posts
    3
    Never mind, I fiqured it out. It should have been:

    INSERT INTO ildonotcallaccesstable ( phonenumber )
    SELECT ac & phone AS phonenumber
    FROM [TEXT;DATABASE=C:\do not call list\].ildonotcalllist9_18_12.txt;

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

Similar Threads

  1. Syntax Error in FROM clause
    By cjohnston in forum Queries
    Replies: 2
    Last Post: 02-15-2012, 07:33 AM
  2. Syntax error on WHERE clause, possible type conflict?
    By shubhamgandhi in forum Programming
    Replies: 3
    Last Post: 07-21-2011, 01:23 PM
  3. Incomplete Syntax Clause (syntax error)
    By ajetrumpet in forum Programming
    Replies: 4
    Last Post: 09-11-2010, 10:47 AM
  4. Where clause syntax
    By stupesek in forum Reports
    Replies: 7
    Last Post: 09-03-2010, 02:26 PM
  5. FROM Clause error message
    By skylite in forum Queries
    Replies: 2
    Last Post: 10-23-2008, 05:47 AM

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