Results 1 to 4 of 4

Thread: Two questions

  1. #1

    Thread Starter
    New Member
    Join Date
    Jul 1999
    Posts
    6

    Post

    Okay, first off, I'm still getting the hang of this crazy thing called VB. So if you'll all be willing to forgive me if I'm slow to pick up...

    Sencond, my questions:

    First Question:
    I'm trying to import 5 text files into an Access DB. I found a VBA command for importing data in Access - DoCmd.TransferText
    How can I access this command from VB 5.0?

    Second Question:
    Once I've imported the files, I want to delete them. Should be simple, but I want to be sure I've got it right before I try and accidently wipe my HD. ;-)

    FDR

  2. #2
    Frenzied Member
    Join Date
    Aug 1999
    Location
    Santa Clara, Ca , 95058
    Posts
    1,105

    Post

    Question 1, I'll defer to others.

    Question 2, make a backup copy of the files that you can restore. Then, programmatically, delete away.

  3. #3
    New Member
    Join Date
    Aug 1999
    Location
    UK
    Posts
    13

    Post

    I'm trying to do the same thing - if anyone provides the answer please can you let me know? (E-mail me as I won't be notified - this isn't my posting).

    Please help us!!!

    ------------------
    Chris Keeble
    www.giglist.com
    mailto:[email protected]

  4. #4
    New Member
    Join Date
    Aug 1999
    Posts
    3

    Post

    Go into Project|References... menu and add the Microsoft Access Object Library.
    Now try the following call:

    Dim MyAccessDB As Access.Application

    MyAccessDB.OpenCurrentDatabase ([path and filename to your db])
    MyAccessDB.DoCmd.TransferText (options you want to set)

    Let me know if you have any more problems with this :-)

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