Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations derfloh on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Link one Access Application to another

Status
Not open for further replies.

strangeryet

Programmer
Jul 8, 2004
159
US
Is it possible to link one Access Application to another (other than importing the needed tables and forms)?
I saw in the command button options a 'run application' function but when I put the link to the other Access app in there, nothing happened other than an error when the command button was clicked. I was hoping the other Access application would pop up.

thanks
 
do you just need access to the other Access database? You can directly query a table in another Access database without linking, I'd have to look around to find a post with an example.


Leslie

Anything worth doing is a lot more difficult than it's worth - Unknown Induhvidual

Essential reading for database developers:
The Fundamentals of Relational Database Design
Understanding SQL Joins
 
Here's one, it's an insert not a select, but it shows the format for an "external" Access database:
Code:
INSERT INTO [;Database="J:\Proj\DB\MODCRCH.mdb"].dt_Field_Parameter  ([Table_Name], [sys_code], [measurement_date], [measurement_time],[param_code], [param_value], [param_unit])
VALUES ('1','test',#10/20/76#,'13:13','pH',7,'std units');

So maybe:

Code:
SELECT * FROM [;Database="J:\Proj\DB\MODCRCH.mdb"];



Leslie

Anything worth doing is a lot more difficult than it's worth - Unknown Induhvidual

Essential reading for database developers:
The Fundamentals of Relational Database Design
Understanding SQL Joins
 
this works
SELECT * FROM Digits IN 'C:\Issues.mdb
 
Thanks for your replies? But does your examples apply to a single function? I am looking for away to fire up an entire new instances of Access, with all the controls and features that the new opened Access app has to offer.
Basically there would be two instances of Access running.

Thanks.
 
Have a look at the CreateObject function.

Hope This Helps, PH.
Want to get great answers to your Tek-Tips questions? Have a look at FAQ219-2884 or FAQ181-2886
 
Code:
Dim AppAccess As New Access.Application
Set AppAccess = CreateObject("Access.Application")
AppAccess.OpenCurrentDatabase ("c:\issues.mdb")
AppAccess.Visible = True
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top