Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
  1. Home
  2. General Programming
  3. Visual Basic
  4. Using SaveFileDialog to backup database files

Using SaveFileDialog to backup database files

Scheduled Pinned Locked Moved Visual Basic
databasehelp
2 Posts 2 Posters 0 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • D Offline
    D Offline
    dgibson5531
    wrote on last edited by
    #1

    Need to write VB code to save application DataBases (Access) to another location of the users choice. Need help coding using SaveFileDialog control. Thanks. Gib5531

    K 1 Reply Last reply
    0
    • D dgibson5531

      Need to write VB code to save application DataBases (Access) to another location of the users choice. Need help coding using SaveFileDialog control. Thanks. Gib5531

      K Offline
      K Offline
      Kschuler
      wrote on last edited by
      #2

      Try this: http://msdn.microsoft.com/library/default.asp?url=/library/en-us/cpref/html/frlrfsystemwindowsformssavefiledialogclasstopic.asp[^] Or you could google it. Or if you were most specific about what you need help with... From what I understand of your situation, your code would look something like this:

          With SaveFileDialog1
              .Filter = "Microsoft Access Database (\*.mdb)|\*.mdb"
              .RestoreDirectory = True
              .DefaultExt = "mdb"
              .AddExtension = True
              .OverwritePrompt = True
              If .ShowDialog() = Windows.Forms.DialogResult.OK Then
                  System.IO.File.Copy(strOriginalFileName, .FileName)
              End If
          End With
      
      1 Reply Last reply
      0
      Reply
      • Reply as topic
      Log in to reply
      • Oldest to Newest
      • Newest to Oldest
      • Most Votes


      • Login

      • Don't have an account? Register

      • Login or register to search.
      • First post
        Last post
      0
      • Categories
      • Recent
      • Tags
      • Popular
      • World
      • Users
      • Groups