Solved

Copy database button

Posted on 2008-10-28
18
232 Views
Last Modified: 2013-12-20
I need to add a button to the main form of my database that will prompt a user for a location and then copy the database to that location.  This is a reporting database and the data is only updated once a month.  The button will allow a user to view the reports when not connected to the network.
0
Comment
Question by:astina
  • 9
  • 9
18 Comments
 
LVL 119

Expert Comment

by:Rey Obrero
ID: 22821380
what do you mean by copy the database? copy the whole database where your main form is?  sorry, cannot copy an open file..

please be specific as to what you want copied.
0
 
LVL 119

Expert Comment

by:Rey Obrero
ID: 22821411
you can create a backup copy of your db.

File>Back up datqabase

this will prompt you for a location to save the backup
0
 

Author Comment

by:astina
ID: 22821746
I actually need a full copy of the database even if i have to use code to somehow close and reopen the db.  

Is there code to use the backup option?  It sounds like that might do the same thing.  Basically I need to allow the user to put the database (.mdb file) onto a flash drive to be used on a plane, train, ect.
0
 
LVL 119

Expert Comment

by:Rey Obrero
ID: 22821796
just use the File > Back up database, no need for the codes
0
 

Author Comment

by:astina
ID: 22821987
I do not see the File > Back up option on my file menu. ??
0
 
LVL 119

Expert Comment

by:Rey Obrero
ID: 22822470
are not seeing this


BackUP.jpg
0
 

Author Comment

by:astina
ID: 22823179
0
 
LVL 119

Expert Comment

by:Rey Obrero
ID: 22823342
oh.. you are using A2000
do you want to do this using another small db application.
0
 

Author Comment

by:astina
ID: 22823735
As long as I can make it "transparent" to the user...lol.  This should allow the user to execute from the main form and copy or backup to a location that the user selects.
0
Do You Know the 4 Main Threat Actor Types?

Do you know the main threat actor types? Most attackers fall into one of four categories, each with their own favored tactics, techniques, and procedures.

 

Author Comment

by:astina
ID: 22829879
I created a vb app to copy the app to another program.  I said access denied.  Any thoughts?
0
 
LVL 119

Expert Comment

by:Rey Obrero
ID: 22830067
copy the app to another program ?
0
 

Author Comment

by:astina
ID: 22830214
Sorry...to another location...but did not work when the db was open.  Worked fine when it was closed.  Windows can copy an open db (when you right click > copy).
0
 
LVL 119

Expert Comment

by:Rey Obrero
ID: 22830778
is the db application an .mde or .mdb?
0
 

Author Comment

by:astina
ID: 22831328
.mdb
0
 
LVL 119

Accepted Solution

by:
Rey Obrero earned 500 total points
ID: 22831877
check this small .mdb
CopyDBFileApp.mdb
0
 

Author Comment

by:astina
ID: 22832875
That's a great little mdb....i will certainly use that in the future.  It does not work for this because will not copy a db that is open by another user.
0
 

Author Comment

by:astina
ID: 22832911
Is there a way we can make windows ignore that the file is open?
0
 
LVL 119

Expert Comment

by:Rey Obrero
ID: 22833829
i already mentioned about copying an open file at http:#a22821380

0

Featured Post

IT, Stop Being Called Into Every Meeting

Highfive is so simple that setting up every meeting room takes just minutes and every employee will be able to start or join a call from any room with ease. Never be called into a meeting just to get it started again. This is how video conferencing should work!

Join & Write a Comment

Enums (shorthand for ‘enumerations’) are not often used by programmers but they can be quite valuable when they are.  What are they? An Enum is just a type of variable like a string or an Integer, but in this case one that you create that contains…
If you need to start windows update installation remotely or as a scheduled task you will find this very helpful.
Show developers how to use a criteria form to limit the data that appears on an Access report. It is a common requirement that users can specify the criteria for a report at runtime. The easiest way to accomplish this is using a criteria form that a…
Access reports are powerful and flexible. Learn how to create a query and then a grouped report using the wizard. Modify the report design after the wizard is done to make it look better. There will be another video to explain how to put the final p…

708 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

17 Experts available now in Live!

Get 1:1 Help Now