Results 1 to 1 of 1

Thread: updating a DB from delimited text files **resolved**

  1. #1

    Thread Starter
    Lively Member
    Join Date
    Nov 2003
    Posts
    81

    Unhappy updating a DB from delimited text files **resolved**

    hi...

    im new to vb and im faced with the problem of updating a DB from some pipe delimeted text files.

    luckily ive got someone's code to follow

    it goes like this

    accApp.DoCmd.TransferText acImportDelim, "mainmb Import
    Specification", "mainmb", gstrFileName, True

    i would like to know where in that line do i specify the character of delimitation ?
    can anyone help me
    thanx


    Solution ->

    you need to save a thing called a Import/Export Specification for this line to work, this Import/Export Specification sits mysteriously in the database file (access) and you can save it using the export wizard in access, when exporting to a text file. I had to save one Import/Export Specification for each table that i needed to upate.
    This Import/Export Specification specifies how the text file is set up ie its delimiter character and whether a text field is encased in double quotes.

    hope that helps
    Last edited by TeaSpoon; Dec 9th, 2003 at 09:29 AM.
    ----------------------------------------
    ÖÖ two hungry cookie monsters

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width