Accessing Access (the Sequel)

shannondbaker

Board Regular
Joined
Sep 25, 2003
Messages
121
Ok, I apologize if this link doesn't work:

http://www.mrexcel.com/board2/viewtopic.php?t=82497&highlight=

Basically, what I was trying to find out in the excel portion was if there is a way to have excel's visual basic to open up a access database and specifically control which form or query opens up. Since I wasn't receiving very many hits in the excel side, I figured I would try the access side.

Any help would be greatly appreciated.

Thanks,

Shannon
 

Excel Facts

Can Excel fill bagel flavors?
You can teach Excel a new custom list. Type the list in cells, File, Options, Advanced, Edit Custom Lists, Import, OK
You can set access to open a specific form on startup by using the Tools->Startup ->Display Page or Form.

To do a query, I would suggest using the AutoExec Macro...

To do this start a new macro. Add the open query command to the macro. Save the Macro as "AutoExec". Whenever you open the db, the macro executes and the query runs.

HTH,
CT
 
Upvote 0
Access syntax for opening form is as direct as this.
When you have a few minutes, open up access and create a form then drag a button from the toolbox onto the form. It will initiate the button wizard and allow you to pick from a wide variety of topics. After creating a few, check out the code that's auto-generated for a little self-help.

This is one example of how you can (limited) duplicate the self-teaching effect of recording Excel macros then going back to see what was auto-generated.

Code:
DoCmd.OpenForm frmName1

Mike
 
Upvote 0

Forum statistics

Threads
1,221,680
Messages
6,161,251
Members
451,692
Latest member
jmaskin

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