A Microsoft Office (Excel, Word) forum. OfficeFrustration

If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below.

Go Back   Home » OfficeFrustration forum » Microsoft Excel » Links and Linking
Site Map Home Register Authors List Search Today's Posts Mark Forums Read  

Access Query Linked to Excel fixed rows



 
 
Thread Tools Display Modes
  #1  
Old September 2nd, 2005, 01:35 PM
Chris Edmunds
external usenet poster
 
Posts: n/a
Default Access Query Linked to Excel fixed rows


Bill Manville Wrote:
A better method of bringing data from Access into Excel would be to use
Data / Import External Data / New Database Query.

Alternatively you could clear the current table and repeat the process
you used previously to get the linked data.


Bill Manville
MVP - Microsoft Excel, Oxford, England
No email replies please - respond to newsgroup


Thankyou for that. New database Query works fine and I can use the
Access written Queries as the input to MSquery. One question, can I
get the MSqueries to autorun on opening the spreadsheet in Excel
without being asked if I wish to do so?


--
Chris Edmunds
  #2  
Old September 3rd, 2005, 07:42 AM
Bill Manville
external usenet poster
 
Posts: n/a
Default

I think you would have to mark the queries as not running on startup
and then have a startup macro that runs them.

Sub Auto_Open()
Dim WS As Worksheet
Dim QT As QueryTable
For Each WS In ThisWorkbook.Worksheets
For Each QT In WS.QueryTables
QT.Refresh BackgroundQuery:=False
Next
Next
End Sub

Bill Manville
MVP - Microsoft Excel, Oxford, England
No email replies please - respond to newsgroup

 




Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
WORD XP mail-merge FAILS using ACCESS query SueMackay Running & Setting Up Queries 4 November 29th, 2004 04:11 PM
is Access 2003 any better than XP? Gorb General Discussion 4 November 11th, 2004 09:44 PM
Access XP Compared to Access 2003 Mardene Leahu New Users 1 October 1st, 2004 05:11 AM
Linking an Excel worksheet to an Access table Sitara Lal General Discussions 6 August 9th, 2004 10:13 PM
Retrieving Count of rows returned from MS Access Query Don General Discussion 2 June 27th, 2004 07:54 PM


All times are GMT +1. The time now is 05:07 PM.


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