A Microsoft Office (Excel, Word) forum. OfficeFrustration

If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below.

Go Back   Home » OfficeFrustration forum » Microsoft Access » Database Design
Site Map Home Register Authors List Search Today's Posts Mark Forums Read  

Open another db from VBA



 
 
Thread Tools Display Modes
  #1  
Old August 13th, 2008, 03:32 PM posted to microsoft.public.access.tablesdbdesign
David C
external usenet poster
 
Posts: 11
Default Open another db from VBA

I have a tracking database in MSAccess which runs nicely.

Now I wish to launch this from within another MSAccess database in response
to a button click (using VBA, I guess).
- ideally, the first db would close itself after opening the tracker
- I experimentated with various code, best was Application.FollowHyperlink
("filename"), but I am not sure how stable the thing is, or what problems
this might create.
- Should this come before or after DoCmd.Close ?
  #2  
Old August 13th, 2008, 04:40 PM posted to microsoft.public.access.tablesdbdesign
fredg
external usenet poster
 
Posts: 4,386
Default Open another db from VBA

On Wed, 13 Aug 2008 07:32:00 -0700, David C wrote:

I have a tracking database in MSAccess which runs nicely.

Now I wish to launch this from within another MSAccess database in response
to a button click (using VBA, I guess).
- ideally, the first db would close itself after opening the tracker
- I experimentated with various code, best was Application.FollowHyperlink
("filename"), but I am not sure how stable the thing is, or what problems
this might create.
- Should this come before or after DoCmd.Close ?


What does this question have to do with TableDesign, the topic of this
newsgroup?

Application.FollowHyperlink "c:\YourFolder\YourDatabase.mdb"
DoCmd.Quit
--
Fred
Please respond only to this newsgroup.
I do not reply to personal e-mail
  #3  
Old August 14th, 2008, 08:06 AM posted to microsoft.public.access.tablesdbdesign
David C
external usenet poster
 
Posts: 19
Default Open another db from VBA

Thanks Fred

{A little aggressive there?}

I posted this, I thought, to the MSAccess Database design group, which is
where the header says it resides. If you cannot help, please advise me where
best to seek answers.

"fredg" wrote:

On Wed, 13 Aug 2008 07:32:00 -0700, David C wrote:

I have a tracking database in MSAccess which runs nicely.

Now I wish to launch this from within another MSAccess database in response
to a button click (using VBA, I guess).
- ideally, the first db would close itself after opening the tracker
- I experimentated with various code, best was Application.FollowHyperlink
("filename"), but I am not sure how stable the thing is, or what problems
this might create.
- Should this come before or after DoCmd.Close ?


What does this question have to do with TableDesign, the topic of this
newsgroup?

Application.FollowHyperlink "c:\YourFolder\YourDatabase.mdb"
DoCmd.Quit
--
Fred
Please respond only to this newsgroup.
I do not reply to personal e-mail

  #4  
Old August 14th, 2008, 05:05 PM posted to microsoft.public.access.tablesdbdesign
fredg
external usenet poster
 
Posts: 4,386
Default Open another db from VBA

On Thu, 14 Aug 2008 00:06:01 -0700, David C wrote:

Thanks Fred

{A little aggressive there?}

I posted this, I thought, to the MSAccess Database design group, which is
where the header says it resides. If you cannot help, please advise me where
best to seek answers.

"fredg" wrote:

On Wed, 13 Aug 2008 07:32:00 -0700, David C wrote:

I have a tracking database in MSAccess which runs nicely.

Now I wish to launch this from within another MSAccess database in response
to a button click (using VBA, I guess).
- ideally, the first db would close itself after opening the tracker
- I experimentated with various code, best was Application.FollowHyperlink
("filename"), but I am not sure how stable the thing is, or what problems
this might create.
- Should this come before or after DoCmd.Close ?


What does this question have to do with TableDesign, the topic of this
newsgroup?

Application.FollowHyperlink "c:\YourFolder\YourDatabase.mdb"
DoCmd.Quit
--
Fred
Please respond only to this newsgroup.
I do not reply to personal e-mail


I did help. I gave you the answer...
Application. FolowHyperlink followed by DoCmd.Quit.

Your topic has to do with VBA and would have better been posted in
either
microsoft.public.access.formscoding
or
microsoft.public.access.modulescoding
or
microsoft.public.access.modulesdaovba

I wasn't, and am not now, being 'aggressive'. Our time is valuable,
just as yours is. I think it makes sense to have your question (and
it's answer) placed where it will be seen by others with a similar
problem, so that we will not have to soon re-answer the same question
for some one else. That's why there are so many different Access
newsgroups.

--
Fred
Please respond only to this newsgroup.
I do not reply to personal e-mail
 




Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Forum Jump


All times are GMT +1. The time now is 09:41 PM.


Powered by vBulletin® Version 3.6.4
Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Copyright ©2004-2024 OfficeFrustration.
The comments are property of their posters.