473,406 Members | 2,377 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,406 software developers and data experts.

Transfer Records Between 2 Back-Ends

68
Hi everyone,

Hope someone can help with my issue. I have two back-ends that I use for my tracking system. Now, I need to transfer one table records (not all the records, some records) from one back-end to the other.

Can anyone enlighten me how to accomplish this?

Take into consideration that both of the back-ends are protected with password and the transfer should be done through the front-end (by clicking a button)?

Thanks in advance
Feb 16 '13 #1

✓ answered by ADezii

Here is how I would approach the problem:
  1. Open up the External (Back End) Databases via DAO or ADO.
  2. Pass the Password (no pun intended) when opening the DBs. In DAO, you would provide the Password in the Options Argument of the OpenDatabase() Method. In ADO, you would provide it within the Connection String or as a Property of the Connection Object.
  3. Now that both DBs are 'Opened', create the appropriate Recordsets for both Back End DBs.
  4. Transfer Records from one Recordset to another by using the AddNew...Update Methods of the Recordset that will be receiving Records.
  5. Keep in mind that both DBs should be opened Exclusively in order to avoid any potential Conflicts.

3 1179
ADezii
8,834 Expert 8TB
Here is how I would approach the problem:
  1. Open up the External (Back End) Databases via DAO or ADO.
  2. Pass the Password (no pun intended) when opening the DBs. In DAO, you would provide the Password in the Options Argument of the OpenDatabase() Method. In ADO, you would provide it within the Connection String or as a Property of the Connection Object.
  3. Now that both DBs are 'Opened', create the appropriate Recordsets for both Back End DBs.
  4. Transfer Records from one Recordset to another by using the AddNew...Update Methods of the Recordset that will be receiving Records.
  5. Keep in mind that both DBs should be opened Exclusively in order to avoid any potential Conflicts.
Feb 16 '13 #2
NeoPa
32,556 Expert Mod 16PB
Please understand that this is not an adequate question, but looks more like a simple request for work. ADezii's response is quite appropriate as it stands, but please understand that any further detailed help is against our rules unless/until you show the work that you've done on this. I'm sure ADezii will be more than happy to go further if you get stuck, but any request for more detailed help which doesn't include good indication that you are attempting to follow this advice yourself is likely to be removed. You're experienced enough now to be expected to know this, but this question was definitely borderline.

As for the question itself, I would just comment that ADezii's point #5 should not be necessary. That is not to say it's a bad idea if you can get away with it, but there are other alternatives (such as Workspace Transactions) that would also be adequate.

My own advice would also be to use SQL rather than recordsets, as I believe the whole process could be handled in one go, but again, that is my preference. ADezii's advice is certainly a correct solution.
Feb 17 '13 #3
ahd2008
68
Sorry for the late reply. Thanks ADezil that sounds a great approach; I have followed the steps and it worked

Neopa, I wasn't looking for detailed answers. I just wanted to know how to complete this task in the right manner as I had no clue about working with two different back-ends.

Thanks all
Feb 24 '13 #4

Sign in to post your reply or Sign up for a free account.

Similar topics

9
by: crjunk | last post by:
I was asked to update an ASP web page that is executed by an ASP.NET aspx web form. I have no control over modifying the ASPX page, so I cannot see any meaningful error message from my ASP page...
1
by: KC | last post by:
Hello, I am using Access 2002. WinXP, Template from MS called Orders Mgmt DB. I have tweaked this DB to work for our small co. It has worked pretty well up until I made the mistake of deleting...
11
by: Alexander Bosch | last post by:
Hi, I'm having a problem similar to the one that's stated in this KB http://support.microsoft.com/default.aspx?scid=kb;en-us;839521 When I'm posting a page to itself with the bool value as true it...
3
by: Ken Varn | last post by:
I have Page1 that does a transfer to page2. When the user is done with Page2, there is a button on Page2 that they can press to bring them back to Page1. I use Server.Transfer to navigate from...
3
by: James Hunter Ross | last post by:
Apparently, our developers used "server transfer" in our ASP.NET, and because of this Back/Refresh presses by users are problematic. Apparently the server has information about state and other...
5
by: rajaaryan44 | last post by:
how can we transfer data from one access database to another databse . the table name is same for both the database . in one table some records are there (rs say e.g.) now another table has say...
1
by: gop62 | last post by:
Hi, I have tried using DTC to transfer records across databases but am having serious performance issues. i think using File I/O can solve my problem Can someone guide me in implementing File IO...
0
by: RP | last post by:
I am using I want to transfer certain columns from my DataGridView (or table) to a text file. Though it is easy to read a row and write into a file, but I want that each column written is equally...
3
by: Bill Eddings | last post by:
I am new to the site so pardon me if I do things wrong until I learn. Though this question is not specifically to ACCESS it is very near to it so I am posting it hoping I get a reply. What I want...
8
by: MOCaseA | last post by:
Greetings (again)... This should be a simple matter but I cannot seem to find any information on how to do/build this. Inside a single DB I have two tables... One is titled Employee Submissions...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
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...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
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...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
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,...

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.