Open access

Mat

Member
Joined
Jun 15, 2004
Messages
12
Programming Experience
10+
Hi,

I'm using an access database in my application and I would like to be able to do a menu with the "save database as" option. Could somebody help me because I think that I need to open access outside of vb.net and save it manually. Is that it??? I have the filename path and already coded the savefiledialogbox I just miss the code that will save the database i'm using to anothername.

thx a lot
 
you should be able to do the following. (import system.io namespace)

Dim fiInfo As FileInfo = New FileInfo("C:\myFile.txt")

fiInfo.CopyTo("C:\myFile2.txt")

You shoudl be able copy it anywhere or name it anything you want.
 
Back
Top