ahmad Level: Master Registered: 03-02-2003 Posts: 120
How to make a copy of an existing Acess Datasbe witn new Name ?
Good Day...
I need to make an option in my form that whenever user
Press the button,System asks for a new Name and then
Make a Copy of an existing Sample MS Access Database with that new name.
Thanks
____________________________
@#@#@
13-09-2006 at 05:14 AM
|
shahidmojid Level: Professor Registered: 09-05-2002 Posts: 85
Re: How to make a copy of an existing Acess Datasbe witn new Name ?
What software do you use? VB6 / VB.Net / C# .... ?
Shahid
13-09-2006 at 11:09 AM
|
ahmad Level: Master Registered: 03-02-2003 Posts: 120
Re: How to make a copy of an existing Acess Datasbe witn new Name ?
i am using VB6 ,i have done it by using
File system object
Dim FS As New FileSystemObject
Call FS.CopyFile("C:\abc.mdb", "C:\xyz.mdb" , True)
Thanks for the reply.
____________________________
@#@#@
18-09-2006 at 10:15 AM
|
JLRodgers Level: Moderator Registered: 04-04-2002 Posts: 1616
Re: How to make a copy of an existing Acess Datasbe witn new Name ?
And does that not work (I don't copy files that way so don't know offhand)?
If it does, I'm not sure what you need help with.
____________________________ Everywhere's Local (classifieds, job postings, & more for everycity in the world - user entered)
21-09-2006 at 05:50 AM
|
ahmad Level: Master Registered: 03-02-2003 Posts: 120
Re: How to make a copy of an existing Acess Datasbe witn new Name ?
it worked ,actualy i found this code after i posted my question at andreavb.Posted the Solution so that if anyone wants to use it for a reference