Results 1 to 2 of 2
  1. #1
    joethall is offline Novice
    Windows 7 Access 2007
    Join Date
    Jun 2010
    Posts
    9

    SQL From syntax

    Can anyone send me the full specs for the From option in MS Access SQL?



    I have this example:
    SELECT * INTO NewTable FROM [Text;HDR=Yes;FMT=Delimited;Database=C:\Temp].[Temp.txt]

    I see parameters such as Text, HDR, FMT, & Database and I need to specify a semi-colon as the separator.

    A full description of the options would be much appreciated.

    I have a flat file of the format where this is the first line and it contains the column names.
    Mon;ID ;Clin;LastName ;FirstName ;M;Suf;City ;St;ZIP

    I need to write VBscript code that creates the appropriate SQL and then runs it.
    My current guess is above.

    Thanks

    Joe

  2. #2
    Gicu's Avatar
    Gicu is offline VIP
    Windows 10 Access 2010 32bit
    Join Date
    Jul 2015
    Location
    Kelowna, BC, Canada
    Posts
    4,115
    Maybe this helps you:https://www.codeproject.com/Articles...b-fixed-length

    But why not just import or link the file using Docmd.TransferText and then use Access to process it?

    Cheers,
    Vlad Cucinschi
    MS Access Developer
    http://forestbyte.com/

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

Similar Threads

  1. Replies: 5
    Last Post: 09-16-2018, 01:18 PM
  2. If....syntax
    By FJM in forum Access
    Replies: 2
    Last Post: 04-26-2018, 05:40 AM
  3. Guide for interpreting MSDN / MS documentation syntax-syntax !!
    By pisorsisaac@gmail.com in forum Access
    Replies: 4
    Last Post: 11-18-2017, 07:07 AM
  4. Convert SQL Server Syntax To Access Query Syntax
    By chalupabatman in forum Queries
    Replies: 1
    Last Post: 10-18-2017, 08:53 PM
  5. Incomplete Syntax Clause (syntax error)
    By ajetrumpet in forum Programming
    Replies: 4
    Last Post: 09-11-2010, 10: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