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 » Using Forms
Site Map Home Register Authors List Search Today's Posts Mark Forums Read  

Opening another instance of access.



 
 
Thread Tools Display Modes
  #1  
Old March 23rd, 2007, 10:14 AM posted to microsoft.public.access.forms
Apples76
external usenet poster
 
Posts: 47
Default Opening another instance of access.

I have created two separate DB's and wish to access the seccond db via a
command button/switchbord command from the first (main), and i am currently
not able to do so. (it's coming up with errors, as i am using the 'Run
application' command wizard.)

could someone please advise me of the code required to open another DB and
be able to work in it.

Both of the DB's share part o the same backend but only one makes changes to
the stored data

Thanks
  #2  
Old March 23rd, 2007, 11:04 AM posted to microsoft.public.access.forms
Wayne-I-M
external usenet poster
 
Posts: 3,674
Default Opening another instance of access.

Hi

Create a button and place this behind the OnClick event

Call Shell("""C:\Program Files\Microsoft Office\OFFICE11\MSACCESS.EXE""
""C:\Documents and Settings\UKOPS\My Documents\NAMEofDATABASE.mdb""", 1)


Notes
Microsoft Office\OFFICE11\MSACCESS
I assume you are using Office11
If not change this

C:\ I assum you are working on C -
if not change this

C:\Documents and Settings\UKOPS\My Documents\NAMEofDATABASE.mdb
Insert the full path to the DB
A tip = if you don't know the path. Click Start / Run / Browse to the DB
then click Open. DON'T RUN - but click the the path in the run dialog box
and paste it into the code above.

Have fun

Hope this helps


--
Wayne
Manchester, England.



"Apples76" wrote:

I have created two separate DB's and wish to access the seccond db via a
command button/switchbord command from the first (main), and i am currently
not able to do so. (it's coming up with errors, as i am using the 'Run
application' command wizard.)

could someone please advise me of the code required to open another DB and
be able to work in it.

Both of the DB's share part o the same backend but only one makes changes to
the stored data

Thanks

  #3  
Old March 23rd, 2007, 03:36 PM posted to microsoft.public.access.forms
Apples76
external usenet poster
 
Posts: 47
Default Opening another instance of access.

Hi Wayne,

thanks for that worked a treat.... only one more bug....

when i try to exit the second db it states "There was ana error executing
the command"

i assume that this is because i am using the Exit application function,
could you please advise on the code to close the second db.

thanks again.

"Wayne-I-M" wrote:

Hi

Create a button and place this behind the OnClick event

Call Shell("""C:\Program Files\Microsoft Office\OFFICE11\MSACCESS.EXE""
""C:\Documents and Settings\UKOPS\My Documents\NAMEofDATABASE.mdb""", 1)


Notes
Microsoft Office\OFFICE11\MSACCESS
I assume you are using Office11
If not change this

C:\ I assum you are working on C -
if not change this

C:\Documents and Settings\UKOPS\My Documents\NAMEofDATABASE.mdb
Insert the full path to the DB
A tip = if you don't know the path. Click Start / Run / Browse to the DB
then click Open. DON'T RUN - but click the the path in the run dialog box
and paste it into the code above.

Have fun

Hope this helps


--
Wayne
Manchester, England.



"Apples76" wrote:

I have created two separate DB's and wish to access the seccond db via a
command button/switchbord command from the first (main), and i am currently
not able to do so. (it's coming up with errors, as i am using the 'Run
application' command wizard.)

could someone please advise me of the code required to open another DB and
be able to work in it.

Both of the DB's share part o the same backend but only one makes changes to
the stored data

Thanks

  #4  
Old March 28th, 2007, 12:13 AM posted to microsoft.public.access.forms
Apples76
external usenet poster
 
Posts: 47
Default Opening another instance of access.

still have the second issue stated below. can anyone help.

cheers.

"Apples76" wrote:

Hi Wayne,

thanks for that worked a treat.... only one more bug....

when i try to exit the second db it states "There was ana error executing
the command"

i assume that this is because i am using the Exit application function,
could you please advise on the code to close the second db.

thanks again.

"Wayne-I-M" wrote:

Hi

Create a button and place this behind the OnClick event

Call Shell("""C:\Program Files\Microsoft Office\OFFICE11\MSACCESS.EXE""
""C:\Documents and Settings\UKOPS\My Documents\NAMEofDATABASE.mdb""", 1)


Notes
Microsoft Office\OFFICE11\MSACCESS
I assume you are using Office11
If not change this

C:\ I assum you are working on C -
if not change this

C:\Documents and Settings\UKOPS\My Documents\NAMEofDATABASE.mdb
Insert the full path to the DB
A tip = if you don't know the path. Click Start / Run / Browse to the DB
then click Open. DON'T RUN - but click the the path in the run dialog box
and paste it into the code above.

Have fun

Hope this helps


--
Wayne
Manchester, England.



"Apples76" wrote:

I have created two separate DB's and wish to access the seccond db via a
command button/switchbord command from the first (main), and i am currently
not able to do so. (it's coming up with errors, as i am using the 'Run
application' command wizard.)

could someone please advise me of the code required to open another DB and
be able to work in it.

Both of the DB's share part o the same backend but only one makes changes to
the stored data

Thanks

 




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:46 AM.


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