473,387 Members | 1,542 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,387 software developers and data experts.

Access 2000 Moving Record source

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 1512
ADezii
8,834 Expert 8TB
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 tblExternalTables.
  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 tblExternalTables and call it cboExternalTables.
  7. The Column Count should be 3, and the first 2 Columns should be Hidden. Ony the Description Field is present in cboExternalTables.
  8. Place the following code in the AfterUpdate() Event of tblExternalTables:
    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
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...
7
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...
2
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....
11
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...
13
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...
0
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...
6
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...
2
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...
6
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...
0
by: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
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
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
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
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...

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.