473,671 Members | 2,558 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Clone data...

I have a situation where a user needs to clone an existing BE database
(stored on a server) to his local machine. Assume the followings...
User goes into the database FE which has linked BE. BE is stroed on a
server.
User needs to be able to click a button on the FE that will clone the
copy of the BE on the server to C:\.
If a copy of the BE already exists at C:\, the clone process should
overwrite the existing copy at C:\.

I THINK this should be easy, but the pain killers I am taking for this
ruptured disc in my back has me a tad loopy (loopier than normal?)
right about now. Any guidance (other than 'don't code while takling
pain killers') is appreciated...

DB

Jul 18 '07 #1
5 1862
Look at the Dir function in the Help file for checking if a copy of the BE
already exists at C:\. Look at the FileCopy statement to create a clone.

The FE will still be linked to the BE on the server. If you want to relink
to the clone, look at TableDefs and Connection String in the Help file.

PC Datasheet
Providing Customers A Resource For Help With Access, Excel And Word
Applications
re******@pcdata sheet.com

"DavidB" <je***@yahoo.co mwrote in message
news:11******** **************@ z28g2000prd.goo glegroups.com.. .
>I have a situation where a user needs to clone an existing BE database
(stored on a server) to his local machine. Assume the followings...
User goes into the database FE which has linked BE. BE is stroed on a
server.
User needs to be able to click a button on the FE that will clone the
copy of the BE on the server to C:\.
If a copy of the BE already exists at C:\, the clone process should
overwrite the existing copy at C:\.

I THINK this should be easy, but the pain killers I am taking for this
ruptured disc in my back has me a tad loopy (loopier than normal?)
right about now. Any guidance (other than 'don't code while takling
pain killers') is appreciated...

DB

Jul 18 '07 #2
Thank you. Exactly the type and level of assistance I was looking
for. I'll jump into the help files and get the code written up to
accomplish the task...
On Jul 18, 3:54 pm, "Steve" <So...@private. emailaddresswro te:
Look at the Dir function in the Help file for checking if a copy of the BE
already exists at C:\. Look at the FileCopy statement to create a clone.

The FE will still be linked to the BE on the server. If you want to relink
to the clone, look at TableDefs and Connection String in the Help file.

PC Datasheet
Providing Customers A Resource For Help With Access, Excel And Word
Applications
resou...@pcdata sheet.com

"DavidB" <je...@yahoo.co mwrote in message

news:11******** **************@ z28g2000prd.goo glegroups.com.. .
I have a situation where a user needs to clone an existing BE database
(stored on a server) to his local machine. Assume the followings...
User goes into the database FE which has linked BE. BE is stroed on a
server.
User needs to be able to click a button on the FE that will clone the
copy of the BE on the server to C:\.
If a copy of the BE already exists at C:\, the clone process should
overwrite the existing copy at C:\.
I THINK this should be easy, but the pain killers I am taking for this
ruptured disc in my back has me a tad loopy (loopier than normal?)
right about now. Any guidance (other than 'don't code while takling
pain killers') is appreciated...
DB- Hide quoted text -

- Show quoted text -

Jul 20 '07 #3
When I use FileCopy in an attempt to make a copy of the BE onto the
local machine I get an Access Denied error. It looks as if the BE
cant be copied since the FE that is attempting the copy uses that very
same back end. Since copying a file that is open at the time can lead
to all kinds of nasty gremlins, this is not at all surprising. I can
however already have a copy of the BE (w/o data) on the local machine
and then merely populate the tables in the 'clone' from the data in
the 'live' BE via queries.
On Jul 20, 12:01 pm, DavidB <je...@yahoo.co mwrote:
Thank you. Exactly the type and level of assistance I was looking
for. I'll jump into the help files and get the code written up to
accomplish the task...

On Jul 18, 3:54 pm, "Steve" <So...@private. emailaddresswro te:
Look at the Dir function in the Help file for checking if a copy of the BE
already exists at C:\. Look at the FileCopy statement to create a clone.
The FE will still be linked to the BE on the server. If you want to relink
to the clone, look at TableDefs and Connection String in the Help file.
PC Datasheet
Providing Customers A Resource For Help With Access, Excel And Word
Applications
resou...@pcdata sheet.com
"DavidB" <je...@yahoo.co mwrote in message
news:11******** **************@ z28g2000prd.goo glegroups.com.. .
>I have a situation where a user needs to clone an existing BE database
(stored on a server) to his local machine. Assume the followings...
User goes into the database FE which has linked BE. BE is stroed on a
server.
User needs to be able to click a button on the FE that will clone the
copy of the BE on the server to C:\.
If a copy of the BE already exists at C:\, the clone process should
overwrite the existing copy at C:\.
I THINK this should be easy, but the pain killers I am taking for this
ruptured disc in my back has me a tad loopy (loopier than normal?)
right about now. Any guidance (other than 'don't code while takling
pain killers') is appreciated...
DB- Hide quoted text -
- Show quoted text -- Hide quoted text -

- Show quoted text -

Jul 20 '07 #4
Programatically create an mdb file in the folder where you want the copy of
the backend then use the TransferDatabas e method to import all the tables in
your backend to the new file.

PC Datasheet
Providing Customers A Resource For Help With Access, Excel And Word
Applications
re******@pcdata sheet.com


"DavidB" <je***@yahoo.co mwrote in message
news:11******** **************@ g4g2000hsf.goog legroups.com...
When I use FileCopy in an attempt to make a copy of the BE onto the
local machine I get an Access Denied error. It looks as if the BE
cant be copied since the FE that is attempting the copy uses that very
same back end. Since copying a file that is open at the time can lead
to all kinds of nasty gremlins, this is not at all surprising. I can
however already have a copy of the BE (w/o data) on the local machine
and then merely populate the tables in the 'clone' from the data in
the 'live' BE via queries.
On Jul 20, 12:01 pm, DavidB <je...@yahoo.co mwrote:
>Thank you. Exactly the type and level of assistance I was looking
for. I'll jump into the help files and get the code written up to
accomplish the task...

On Jul 18, 3:54 pm, "Steve" <So...@private. emailaddresswro te:
Look at the Dir function in the Help file for checking if a copy of the
BE
already exists at C:\. Look at the FileCopy statement to create a
clone.
The FE will still be linked to the BE on the server. If you want to
relink
to the clone, look at TableDefs and Connection String in the Help file.
PC Datasheet
Providing Customers A Resource For Help With Access, Excel And Word
Applications
resou...@pcdata sheet.com
"DavidB" <je...@yahoo.co mwrote in message
>news:11******* *************** @z28g2000prd.go oglegroups.com. ..
>I have a situation where a user needs to clone an existing BE database
(stored on a server) to his local machine. Assume the followings...
User goes into the database FE which has linked BE. BE is stroed on
a
server.
User needs to be able to click a button on the FE that will clone the
copy of the BE on the server to C:\.
If a copy of the BE already exists at C:\, the clone process should
overwrite the existing copy at C:\.
I THINK this should be easy, but the pain killers I am taking for
this
ruptured disc in my back has me a tad loopy (loopier than normal?)
right about now. Any guidance (other than 'don't code while takling
pain killers') is appreciated...
DB- Hide quoted text -
- Show quoted text -- Hide quoted text -

- Show quoted text -


Jul 20 '07 #5
DavidB <je***@yahoo.co mwrote:
>When I use FileCopy in an attempt to make a copy of the BE onto the
local machine I get an Access Denied error. It looks as if the BE
cant be copied since the FE that is attempting the copy uses that very
same back end.
You need to close all forms and recordsets (and unlikely but reports too) which are
bound to the backend. You likely have a form which is open agains the backend for
performance purposes.

You can verify that all such are closed when there is no longer an .ldb file against
the backend.
>I can
however already have a copy of the BE (w/o data) on the local machine
and then merely populate the tables in the 'clone' from the data in
the 'live' BE via queries.
You could but you'd have to do this in relational sequence. That is parent tables
first, then child tables and child of child tables. If that makes sense.

Tony
--
Tony Toews, Microsoft Access MVP
Please respond only in the newsgroups so that others can
read the entire thread of messages.
Microsoft Access Links, Hints, Tips & Accounting Systems at
http://www.granite.ab.ca/accsmstr.htm
Tony's Microsoft Access Blog - http://msmvps.com/blogs/access/
Jul 21 '07 #6

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

4
2271
by: Vincent | last post by:
Hey, I have a problem to understand the underlaying of clone method. Hope someone can help me out. Let's say, clonedObject = originalObject.clone() (syntax may be wrong, but you know what I mean, I hope ) Why can't I just do this, instead?
4
6262
by: Steve Teeples | last post by:
I have TreeNodes in a TreeView, each contains unique data in its Tag section. I am trying to 'clone' a TreeNode and then modify the tag data of the cloned TreeNode. What I am seeing is that by modifying the Tag data of the cloned TreeNode the original TreeNode's Tag data is also being modified with the identical change. Does the clone method not create a completely new data reference of the original TreeNode? If not, how can I get a...
4
386
by: Vincent | last post by:
Hey, I have a problem to understand the underlaying of clone method. Hope someone can help me out. Let's say, clonedObject = originalObject.clone() (syntax may be wrong, but you know what I mean, I hope ) Why can't I just do this, instead?
7
2826
by: =?Utf-8?B?Sm9lbCBNZXJr?= | last post by:
I have created a custom class with both value type members and reference type members. I then have another custom class which inherits from a generic list of my first class. This custom listneeds to support cloning: Public Class RefClass Public tcp As TcpClient Public name As String End Class Public Class RefClassList Inherits List(Of RefClass) Implements ICloneable
0
8403
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
0
8828
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth. The Art of Business Website Design Your website is...
0
8677
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
0
7446
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own.... Now, this would greatly impact the work of software developers. The idea...
1
6238
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms. Adolph will...
0
5704
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert into image. Globals.ThisAddIn.Application.ActiveDocument.Select();...
0
4227
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
2
2062
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
2
1816
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.