473,938 Members | 15,887 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Access 2000 Moving Record source

1 New Member
Hi all

I have inherated a bit of a dilema and not sure about the correct way of solving the problem.

The company I work for have 60 identical but seperate databases which are all in seperate folders on the network for the 60 offices that use them. I have taken over looking after these databases and supporting them.

Each database have the same tables and forms but I would like to create a seperate database that will be able to show all 60 database tables without having to open each database seperately.

I know what I would like to do is to link the database tables to the new database and bring in each of the tables I want to use such as the Users Table and the Users group table, but I dont want to end up having a copy of all 60 user forms one for each user table to be able to edit the details or a menu system that has 60 buttons to press. I would like to use one form but to be able to change the form record source to one of the 60 database user tables I want to edit and update.

I would also like to have a menu system that will allow me to tell the form which table record source I want to connect too

Is this possible? Hope Ive expalined myself if not please email me and I will elaborate further

Thanks in advance

White Eagle
Jul 26 '07 #1
1 1534
ADezii
8,834 Recognized Expert Expert
Hi all

I have inherated a bit of a dilema and not sure about the correct way of solving the problem.

The company I work for have 60 identical but seperate databases which are all in seperate folders on the network for the 60 offices that use them. I have taken over looking after these databases and supporting them.

Each database have the same tables and forms but I would like to create a seperate database that will be able to show all 60 database tables without having to open each database seperately.

I know what I would like to do is to link the database tables to the new database and bring in each of the tables I want to use such as the Users Table and the Users group table, but I dont want to end up having a copy of all 60 user forms one for each user table to be able to edit the details or a menu system that has 60 buttons to press. I would like to use one form but to be able to change the form record source to one of the 60 database user tables I want to edit and update.

I would also like to have a menu system that will allow me to tell the form which table record source I want to connect too

Is this possible? Hope Ive expalined myself if not please email me and I will elaborate further

Thanks in advance

White Eagle
Everything you ask is in fact possible, but it would be a rather extensive undertaking. I'll provide you with a solution for your 1st question which is quoted below, and hopefully, you can figure out the rest.

Each database have the same tables and forms but I would like to create a seperate database that will be able to show all 60 database tables without having to open each database seperately.
  1. Create a Table on the MASTER Database, yours I'll assume.
  2. Name this Table tblExternalTabl es.
  3. Create 3 Fields in this Table as listed below:
    1. Path - TEXT (125)
    2. Table Name - TEXT (50)
    3. Description - TEXT (125)
  4. Populate this Table with all the relevant Data for the 60 Tables.
  5. Sample Data that I used for test purposes was
    Expand|Select|Wrap|Line Numbers
    1. Path                                   Table Name             Description
    2. C:\Test\HMAU_DATA.MDB                  tblEmployees           Employee Biographical Data
    3.  
  6. Create a Combo Box on a Form based on tblExternalTabl es and call it cboExternalTabl es.
  7. The Column Count should be 3, and the first 2 Columns should be Hidden. Ony the Description Field is present in cboExternalTabl es.
  8. Place the following code in the AfterUpdate() Event of tblExternalTabl es:
    Expand|Select|Wrap|Line Numbers
    1. Private Sub cboExternalTables_AfterUpdate()
    2. If IsNull(Me![cboExternalTables]) Then Exit Sub
    3.  
    4. Dim strDBPath As String, strTableName As String
    5.  
    6. strDBPath = Me![cboExternalTables].Column(0)
    7. strTableName = Me![cboExternalTables].Column(1)
    8.  
    9. 'Dim appAccess As Access.Application Declared in Form Module
    10. 'Create new instance of Microsoft Access.
    11. Set appAccess = CreateObject("Access.Application")
    12.     appAccess.Visible = True
    13.  
    14. 'Open database in Microsoft Access window.
    15. appAccess.OpenCurrentDatabase strDBPath
    16.  
    17. 'Open specific Table.
    18. appAccess.DoCmd.OpenTable strTableName
    19.  
    20. 'Keep External Table Window manageable so as not to be
    21. 'confused with Main Access Window
    22. appAccess.DoCmd.Restore
    23. End Sub
  9. When a Database Description is clicked in the Combo Box, that Database will be opened as though it were the Current Database, and the corresponding Table will be opened and restored.
  10. Good luck in your undertaking.
Aug 7 '07 #2

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

Similar topics

0
2740
by: Frances | last post by:
Hi All, I'm having a problem trying to add a record to a simple Access 2000 db (db is very similar to an address book but with more info than the usual address, phone, etc.). The database is one table, 36 fields. The record_id field is an autonumber field (long int) and primary key. The rest of the fields comprise of 30 text fields, 3 memo fields, 1 date field and 1 currency field. Text fields vary in number of characters allowed. ...
7
2171
by: Mike Nygard | last post by:
I'm experiencing extremely slow response times in design mode of my forms since moving to Access 2003. Simply dragging a button to a different position on the form takes 30 seconds or more. The record source for my form is an ODBC passthrough query to an Oracle database. I have two XP system identically configured except that one has Access 2000 and the other with Access 2003. I only have this problem with Access 2003. The Access 2003...
2
2044
by: David C. Barber | last post by:
upsized an MDB to ADP/SQL Server 2000 under Access 2000. All the DAO code that I've changed to ADO code is working fine, HOWEVER the form Record Source itself does not seem willing to return data. I've set the Record Source to both the query, and the SQL contained within the query, and although the system pauses long enough to have gone out and retrieved the data, I can't see it. The form itself remains gray. In addition: ...
11
3552
by: scsTiger | last post by:
I am using Access 2000 as the front end and MS SQL 2000 as the backend. I have a one record form that I set using something like: strSQL = "SELECT * FROM dbo_WBACCT WHERE (((dbo_WBACCT.ACCOUNT)='"423456"'));" Me.RecordSource = strSQL Obviously I only want one record at a time because the database is very big.
13
2708
by: Owen Jenkins | last post by:
Following on from an earlier post... I can reliably corrupt a record by doing the following ... Open two separate but identical front ends on one PC each linking to the same back end. Edit a records in one front end and leave it unsaved. Edit the same record in the other front end and save the change. Save the change in the first front end - this pops up the Write Conflict message to which I click Save.
0
2570
by: mzodell | last post by:
Running Access 2003 with a database in 2000 file format and noticed that the search results differ depending on what version of Access is in use. Users running Access 2000 are able to call the find function to search for a record in a field that displays a location but is populated by a location code. When the user enters the location code, the search will return a record with matching location. Running the same database in Access 2003...
6
2687
by: jsacrey | last post by:
Hello everybody, I've got a bit of a situation that I could use some guidance with if possible. I work for an auditing firm where my users audit electronic shipping data for customers to see if they've been overcharged for shipments by truck and rail carriers. 99.9% of the time, one of our auditors needs to see all data sent by a customer in datasheet view so that they can sort records in many different ways looking for duplication...
2
19523
hyperpau
by: hyperpau | last post by:
Before anything else, I am not a very technical expert when it comes to VBA coding. I learned most of what I know by the excellent Access/VBA forum from bytes.com (formerly thescripts.com). Ergo, I will be writing this article intended for those who are in the same level, or maybe lower, of my technical knowledge. I would be using layman's words, or maybe, my own words as how I understand them, hoping, you will understand it the same way that...
6
2431
by: Wesley Peace | last post by:
I hate to cross post, but I've gotten no answer yet on a problem I'm having with visual studio 2008. I've created a series of forms with controls to access a Access database tables. The connection string works fine and the tables are added to the project without a problem. When I create the tables they appear to bind and I am able to preview the data in the database in design mode; however, at runtime no data is displayed and the...
0
10134
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, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look ! Part I. Meaning of...
0
11524
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, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. Here is my compilation command: g++-12 -std=c++20 -Wnarrowing bit_field.cpp Here is the code in...
0
11106
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...
1
11288
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 Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
0
10657
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
9857
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...
0
7381
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();...
1
4904
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
2
4446
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.

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.