ExcelBanter

ExcelBanter (https://www.excelbanter.com/)
-   Excel Discussion (Misc queries) (https://www.excelbanter.com/excel-discussion-misc-queries/)
-   -   Link Excel To Access (https://www.excelbanter.com/excel-discussion-misc-queries/240520-link-excel-access.html)

James

Link Excel To Access
 
Can you please tell me how to enable the links command in excel (Edit
Menu...Links) Basically though I would like to be able to open up Excel and
automatically pull in data from Access, without having to have the user
Refresh Data. Thanks.


Luke M

Link Excel To Access
 
Goto Data - Import Data - New Database Query.
Setup your query to pull from appropriate Access table(s), using crtieria if
desired. Then, edit again under Import Data - Edit Query, setup your query to
refresh upon opening.

Or, use VB to create a Workbook_Open event that automatically refreshes the
query.
--
Best Regards,

Luke M
*Remember to click "yes" if this post helped you!*


"James" wrote:

Can you please tell me how to enable the links command in excel (Edit
Menu...Links) Basically though I would like to be able to open up Excel and
automatically pull in data from Access, without having to have the user
Refresh Data. Thanks.


James

Link Excel To Access
 
Thanks that worked. However when you open up the spreadsheet you are still
promtped with "enable automatic refresh" or disable automatic refresh" is
their a way to supress this. Its not that big of a deal, just don't want to
give the user any options. Also what is the purpose of the Links command, and
how do I enable it. Thanks

"Luke M" wrote:

Goto Data - Import Data - New Database Query.
Setup your query to pull from appropriate Access table(s), using crtieria if
desired. Then, edit again under Import Data - Edit Query, setup your query to
refresh upon opening.

Or, use VB to create a Workbook_Open event that automatically refreshes the
query.
--
Best Regards,

Luke M
*Remember to click "yes" if this post helped you!*


"James" wrote:

Can you please tell me how to enable the links command in excel (Edit
Menu...Links) Basically though I would like to be able to open up Excel and
automatically pull in data from Access, without having to have the user
Refresh Data. Thanks.


Luke M

Link Excel To Access
 
The links function is for when you have a cell formula reference to another
workbook. Example:

='C:/My documents/Another workbook.xlsSheet!'A1

You could then use the Links command to edit the file paths (very handy if a
workbook is moved). These formula produce a similar opening message of "do
you want to update" but its slightly different. Because they are formulas, if
you don't update, XL makes note that these formulas are not truly accurate,
and should not try to keep updating them in future calculation cycles.

A query is a one-step data dump from an outside source. XL suggests that you
might want to get the latest data when opening, but it has not problem
handling the data regardless of your choice.


--
Best Regards,

Luke M
*Remember to click "yes" if this post helped you!*


"James" wrote:

Thanks that worked. However when you open up the spreadsheet you are still
promtped with "enable automatic refresh" or disable automatic refresh" is
their a way to supress this. Its not that big of a deal, just don't want to
give the user any options. Also what is the purpose of the Links command, and
how do I enable it. Thanks

"Luke M" wrote:

Goto Data - Import Data - New Database Query.
Setup your query to pull from appropriate Access table(s), using crtieria if
desired. Then, edit again under Import Data - Edit Query, setup your query to
refresh upon opening.

Or, use VB to create a Workbook_Open event that automatically refreshes the
query.
--
Best Regards,

Luke M
*Remember to click "yes" if this post helped you!*


"James" wrote:

Can you please tell me how to enable the links command in excel (Edit
Menu...Links) Basically though I would like to be able to open up Excel and
automatically pull in data from Access, without having to have the user
Refresh Data. Thanks.



All times are GMT +1. The time now is 02:51 PM.

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
ExcelBanter.com