• Import csv and dots

    Author
    Topic
    #464118

    Hello.
    (Access 2007)
    I’m importing a csv where the first row has field names containing dots (periods .). So I make this the first row of the data
    and then manually create these as the field names – having removed the dots.
    Has anyone a procedure that could automate this re-naming of the fields? Thanks, Andy.

    Viewing 1 reply thread
    Author
    Replies
    • #1186969

      Andy,

      When you have a cvs file with the first row has field names containing dots, like this :

      you may import the file with the import wizard. The wizard will remove the dots. Like this result :
      [

    • #1186974

      If you want to import it by code, you can, but you have to use Import Specifications. A line like this :

      DoCmd.TransferText acImportDelim, “Book1ImportSpecifications”, “Book1”, “D:Book1.csv”, True

    Viewing 1 reply thread
    Reply To: Reply #1186969 in Import csv and dots

    You can use BBCodes to format your content.
    Your account can't use all available BBCodes, they will be stripped before saving.

    Your information:




    Cancel