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?
External databases
Collapse
X
-
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) -
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.m db, 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.Comment
-
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)Comment
-
You can use the OpenCurrentData base() 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.Originally posted by rcollinsWe 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.m db, 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.- Declare at the Modular, not Procedural, Level:
Code:Dim appAccess As Access.Application
- Run similar code to open Northwind.mdb as the Current Database.
[CODE=vb]
'Initialize string to External Database Path.
Const conPATH_TO_EXTE RNAL_DB = "C:\Program Files\Microsoft Office\OFFICE11 \SAMPLES\Northw ind.mdb"
'Create new instance of Microsoft Access.
Set appAccess = CreateObject("A ccess.Applicati on")
'Open database in Microsoft Access window.
appAccess.OpenC urrentDatabase conPATH_TO_EXTE RNAL_DB[/CODE]
Comment
- Declare at the Modular, not Procedural, Level:
-
A Reboot should eliminate the .ldb File.Originally posted by rcollinsWhile 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 eitherComment
-
You are quite welcome.Originally posted by rcollinsSo 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 issueComment
Comment