Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 473
Default Open Access DB in Excel with Command Button

Darrell wrote:
I want to add a command button in my spreadsheet to open my access data.
I know I have to create a macro but I do not know the syntax.
Is it simple enough where someone can post it and I will copy and paste?


You just want to open a database within Access?

Shell Application.Path & "\MSACCESS.EXE C:\MyDir\MyDatabase.mdb"

If you want to access the data from the spreadsheet then you would be better to execute a query.
Data / Get External Data / New Database Query
Record a macro as you do it and you will be most of the way there.

Bill Manville
MVP - Microsoft Excel, Oxford, England
No email replies please - reply in newsgroup

Reply
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules

Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
Open a Workbook using a Command Button aussiegirlone Excel Discussion (Misc queries) 2 April 7th 09 03:56 AM
how can I access favorites in the Excel 2007 Open file command GrahamC Excel Discussion (Misc queries) 0 August 23rd 07 12:40 AM
how can I access favorites in the Excel 2007 Open file command GrahamC Setting up and Configuration of Excel 0 August 23rd 07 12:36 AM
Printing Access reports through Excel command button? Ed Excel Discussion (Misc queries) 0 June 7th 06 03:52 PM
Access data form through command button aet-inc Excel Programming 2 December 2nd 03 09:41 PM


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

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

About Us

"It's about Microsoft Excel"