Creating Buttons??

bellasuz

New Member
Joined
Dec 19, 2004
Messages
10
Hi everyone,

Is there a way to create a button, and have it open up another access database? If so, how do I do it? Please help!

Thanks!
 

Excel Facts

Links? Where??
If Excel says you have links but you can't find them, go to Formulas, Name Manager. Look for old links to dead workbooks & delete.
The technique here will open anything - any file type.

http://www.mrexcel.com/board2/viewtopic.php?t=123544
(fHandleFile)

This, below, is how you can open up a new workspace db connection using DAO. Technically, the below is generally used to connect and access another database with VBA. You could, for example, open up tables to do things with them.

Code:
Dim dbs As DAO.Database
dim strDB As String

strDB = "C:\path\to\file.mdb"
Set dbs = DBEngine.Workspaces(0).OpenDatabase(strDB)

Mike
 
Upvote 0

Forum statistics

Threads
1,221,842
Messages
6,162,333
Members
451,759
Latest member
damav78

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