backup and restore MSAccess in vb

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • Bindurajan
    New Member
    • Oct 2006
    • 3

    backup and restore MSAccess in vb

    How do i backup and restore MS Access Database with Visual Basic
  • willakawill
    Top Contributor
    • Oct 2006
    • 1646

    #2
    Originally posted by Bindurajan
    How do i backup and restore MS Access Database with Visual Basic
    Copy and paste the .mdb file

    Comment

    • Bindurajan
      New Member
      • Oct 2006
      • 3

      #3
      actually my need is to restore data of older mdbfile to new mdb.new mdb has
      some additonal fields and data.so additonal changes have to retain after restoring data of the older mdb file.

      Comment

      • willakawill
        Top Contributor
        • Oct 2006
        • 1646

        #4
        Originally posted by Bindurajan
        actually my need is to restore data of older mdbfile to new mdb.new mdb has
        some additonal fields and data.so additonal changes have to retain after restoring data of the older mdb file.
        Aha. So you are not restoring you are importing the data from one mdb file to another.

        Comment

        • Bindurajan
          New Member
          • Oct 2006
          • 3

          #5
          Originally posted by willakawill
          Aha. So you are not restoring you are importing the data from one mdb file to another.

          Can you tell a medthod to import mdb files using vb

          Comment

          • willakawill
            Top Contributor
            • Oct 2006
            • 1646

            #6
            Originally posted by Bindurajan
            Can you tell a medthod to import mdb files using vb
            There are a few. If you do not have Access and want to do this through VB here is one method
            Code:
            Do While Not rsOldDB.EOF
            rsNewDB.AddNew
            rsNewDB("Column1") = rsOldDB("Column1")
            rsNewDB("Column2") = rsOldDB("Column2")
            ...
            rsNewDB.Update
            rsOldDB.MoveNext
            Loop

            Comment

            • amitvermaa
              New Member
              • Mar 2008
              • 1

              #7
              Originally posted by Bindurajan
              Can you tell a medthod to import mdb files using vb
              yes i want to know that how to create bakup in vb software with ms access

              Comment

              Working...