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 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
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 -
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 -
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 -
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/ This thread has been closed and replies have been disabled. Please start a new discussion. Similar topics |
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?
|
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...
|
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?
|
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
|
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,...
| |
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...
|
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...
|
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...
|
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...
|
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();...
|
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...
| |
by: muto222 |
last post by:
How can i add a mobile payment intergratation into php mysql website.
|
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...
| |