Results 1 to 3 of 3
  1. #1
    Join Date
    Oct 2003
    Location
    São Paulo - Brazil
    Posts
    91

    Unanswered: Copy A.mdb to B.mdb inside of C.mdb

    Hi guys.

    I´d like to copy the file A.mdb to file B.mdb in a function running in C.mdb .


    I Know I should use the object.CopyFile, but I don´t Know how !


    Thanks
    My environment: Windows XP/ Access 2000 - Using Microsoft DAO 3.6 Library

  2. #2
    Join Date
    Sep 2003
    Location
    T.O.
    Posts
    326
    If you're using Access2000, you should have the appropriate Scripting Runtime library available. Why not use the FileSystemObject's .CopyFile method to do this? Maybe that's what your asking.

    Dim fso as new fileSystemObject
    if fso.fileExists("C:\B.mdb") then fso.DeleteFile ("C:\B.mdb")
    fso.copyFile "C:\A.mdb", "C:\B.mdb"
    All code ADO/ADOX unless otherwise specified.
    Mike.

  3. #3
    Join Date
    Oct 2003
    Location
    São Paulo - Brazil
    Posts
    91
    Thanks It worked !
    My environment: Windows XP/ Access 2000 - Using Microsoft DAO 3.6 Library

Posting Permissions

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