Can I open another Database from a comand button

NightOwl

New Member
Joined
Jul 2, 2004
Messages
2
Can I open another Database from a comand button on a form and not have the database with the open button close?
Eg..I have Db1 open and I wish to open Db2 do some work in it, then close Db2 and have Db1 as it was before I opened Db2 . :confused:
If this is possible, how would I do it?
I have never used VBA in Access..so I'm not too sure I could do that :oops:
TIA
Jacki
 

Excel Facts

Highlight Duplicates
Home, Conditional Formatting, Highlight Cells, Duplicate records, OK to add pink formatting to any duplicates in selected range.
One possible option.

Instead of using a Command Button how about using a Hyperlink?

e.g.
Open your Menu\Switchboard form in Design View

Go to Toolbar option Insert
Choose Hyperlink from drop down list
Select the database you want to open

If this meets your needs you could then "Attach" this Hyperlink to a Command Button - have the Hyperlink activated when an On Click event occurs.

HTH
Bernard
 
Upvote 0
Thanks Bernard,
I never considered attaching a hyperlink to a command button. Great idea!!
I know I could just link to Db2 but I just wanted to know if it was possible to do it this way. So... thanks Heaps :)
Regards
Jacqui
 
Upvote 0

Forum statistics

Threads
1,221,819
Messages
6,162,155
Members
451,749
Latest member
zack_ken

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Back
Top