Solved

Copy database button

Posted on 2008-10-28
18
237 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 9
  • 9
18 Comments
 
LVL 120

Expert Comment

by:Rey Obrero (Capricorn1)
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 120

Expert Comment

by:Rey Obrero (Capricorn1)
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
PeopleSoft Has Never Been Easier

PeopleSoft Adoption Made Smooth & Simple!

On-The-Job Training Is made Intuitive & Easy With WalkMe's On-Screen Guidance Tool.  Claim Your Free WalkMe Account Now

 
LVL 120

Expert Comment

by:Rey Obrero (Capricorn1)
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 120

Expert Comment

by:Rey Obrero (Capricorn1)
ID: 22822470
are not seeing this


BackUP.jpg
0
 

Author Comment

by:astina
ID: 22823179
0
 
LVL 120

Expert Comment

by:Rey Obrero (Capricorn1)
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
 

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 120

Expert Comment

by:Rey Obrero (Capricorn1)
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 120

Expert Comment

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

Author Comment

by:astina
ID: 22831328
.mdb
0
 
LVL 120

Accepted Solution

by:
Rey Obrero (Capricorn1) 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 120

Expert Comment

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

0

Featured Post

Revamp Your Training Process

Drastically shorten your training time with WalkMe's advanced online training solution that Guides your trainees to action.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

As tax season makes its return, so does the increase in cyber crime and tax refund phishing that comes with it
You need to know the location of the Office templates folder, so that when you create new templates, they are saved to that location, and thus are available for selection when creating new documents.  The steps to find the Templates folder path are …
Using Microsoft Access, learn some simple rules for how to construct tables in a relational database. Split up all multi-value fields into single values: Split up fields that belong to other things into separate tables: Make sure that all record…
In Microsoft Access, learn different ways of passing a string value within a string argument. Also learn what a “Type Mis-match” error is about.

691 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