473,503 Members | 1,692 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

External databases

rcollins
234 New Member
I have probably about 30 databases. Each of these have their own front end. Different users have different databases they use. I want to make up a front end for each department so they can access the databases they need. I know this can be done by hyperlinks to open the individual databases, but I woul drather be able to do this within the front end databse for each department. Is this possible?
May 14 '08 #1
9 1929
nico5038
3,080 Recognized Expert Specialist
In general we do this using linked tables.
When your users just need to switch between whole databases, then you could look into using code for setting the current database to another .mdb. For this check the helpfile on the subject of WorkSpaces.

Nic;o)
May 14 '08 #2
rcollins
234 New Member
We already have the tables linked throughout the 30+ databases. Let me try to be a bit more specific. We have triage.mdb, officesupplies.mdb, mailinglables.mdb, cmdatabase.mdb which all have thier own front ends. I want reception to be able to access all four of these through a single front end. My hopes for this is that, because some departments can use up to 10 of the databases, that they dont have mdb icons all over the place, they can open the one and access all of the info they need.
May 14 '08 #3
nico5038
3,080 Recognized Expert Specialist
There's no limit to link tables to different .mdb's.
Thus one front end can be linked to the tables of all back end databases.
It's the needed functions/forms that should be giving the guideline which tables should be linked.
Personally I did create multiple front-ends based on the same back end, but the other way around is no problem either.

Nic;o)
May 14 '08 #4
ADezii
8,834 Recognized Expert Expert
We already have the tables linked throughout the 30+ databases. Let me try to be a bit more specific. We have triage.mdb, officesupplies.mdb, mailinglables.mdb, cmdatabase.mdb which all have thier own front ends. I want reception to be able to access all four of these through a single front end. My hopes for this is that, because some departments can use up to 10 of the databases, that they dont have mdb icons all over the place, they can open the one and access all of the info they need.
You can use the OpenCurrentDatabase() Method to open any existing, External, Microsoft Access database (.mdb) as the Current Database via Automation. The following code will Open the Sample Northwind Database from whatever Database you are actively in. Northwind will then be treated as the Current Database.
  1. Declare at the Modular, not Procedural, Level:
    Expand|Select|Wrap|Line Numbers
    1. Dim appAccess As Access.Application
  2. Run similar code to open Northwind.mdb as the Current Database.
    Expand|Select|Wrap|Line Numbers
    1. 'Initialize string to External Database Path.
    2. Const conPATH_TO_EXTERNAL_DB = "C:\Program Files\Microsoft Office\OFFICE11\SAMPLES\Northwind.mdb"
    3.  
    4. 'Create new instance of Microsoft Access.
    5. Set appAccess = CreateObject("Access.Application")
    6.  
    7. 'Open database in Microsoft Access window.
    8. appAccess.OpenCurrentDatabase conPATH_TO_EXTERNAL_DB
May 15 '08 #5
rcollins
234 New Member
So can I put this code under On_Click for a button? Or where would I use it to open the other database. When I put it with the button, it doesn't error but it doesn't open either. I put in my path R:\MDS_DBs\Misc\UIs\MailingLabel.mdb
May 15 '08 #6
rcollins
234 New Member
While looking I noticed that I do have a .ldb file, but the database is not open anywhere and it will not let me delete it, says the database is in use and it won't let me in the database either
May 15 '08 #7
ADezii
8,834 Recognized Expert Expert
While looking I noticed that I do have a .ldb file, but the database is not open anywhere and it will not let me delete it, says the database is in use and it won't let me in the database either
A Reboot should eliminate the .ldb File.
May 16 '08 #8
rcollins
234 New Member
So after looking at the individual databases I learned that there must be a form set to open when the database opens. I set this in each of them now they work. This will be great, thank you for your help with this issue
May 16 '08 #9
ADezii
8,834 Recognized Expert Expert
So after looking at the individual databases I learned that there must be a form set to open when the database opens. I set this in each of them now they work. This will be great, thank you for your help with this issue
You are quite welcome.
May 17 '08 #10

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

Similar topics

8
4146
by: Scott Allen | last post by:
Hello, I'm new to C++ development and I'm trying out figure out the cause of an 'unresolved external symbol' error that I'm receiving when compiling. Here is some history on what I'm doing: I...
8
32646
by: Greg Fierro | last post by:
I would appreciate any help from anyone with the following: I have an external program (window32 based) that I am executing with the VBA SHELL command. This program produces a text file which I...
2
2299
by: Sara | last post by:
Hi - I've been reading the posts for a solution to my query, and realize that I should ask an "approch" question as well. We receive our production data from a third party, so my uers import...
0
1149
by: sara | last post by:
I am new to Access and especially to forms and code. I have a form in each of 5 databases that allows the user to enter the date and then automatically run all the reports for that date. The user...
6
9598
by: ats | last post by:
I have a table that contains the database names of external databases. Each one of these external databases contain a table (which has the same structure) that I would like to query together as one...
3
1878
by: Wiktor Zychla | last post by:
Hello, my question is rather connected with some aspects of ADO.NET but I've been trying to ask on .dotnet.framework.adonet with no result. I hope someone here can help me. The problem is...
0
11156
by: Sameers (theAngrycodeR) via .NET 247 | last post by:
I think I will get MAD very soon. Its very weired problem I amfacing here. Let me explain. I have two DBF files from which I want to export data in CSVformat. I created a desktop application and...
1
1350
by: Dennis Gearon | last post by:
I'd like to get people's feelings about the topic. At one extreme is to use table locking and external language queries to even do referential integerity - a la Old (present?) MySQL/PHP. A more...
3
5741
by: eieiohh | last post by:
MySQL 3.23.49 PHP 4.3.8 Apache 2.0.51 Hi All! Newbie.. I had a CRM Open Source application installed and running. Windows Xp crashed. I was able to copy the contents of the entire hard...
0
7199
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,...
1
6982
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
7451
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...
0
5572
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,...
1
5000
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...
0
3150
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
0
1501
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 ...
1
731
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
0
374
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...

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.