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  dBforums > PC based Database Applications > Microsoft Excel > Link to MS Access Query Problem

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1 (permalink)  
Old 02-14-12, 13:55
dfeteau dfeteau is offline
Registered User
 
Join Date: Feb 2012
Posts: 7
Question Link to MS Access Query Problem

So I'm trying to set up a link in Excel 2007 to a query in a Access 2007 database but the result I get are the headers and 2 blank rows. When I check the query in Access, it comes through fine. Whats wrong? How do I fix the link?
Reply With Quote
  #2 (permalink)  
Old 02-15-12, 07:39
MikeTheBike MikeTheBike is offline
Registered User
 
Join Date: Apr 2004
Location: Derbyshire, UK
Posts: 714
Hi

I think a little more info is required, ie. what are you trying to achieve and what are you doing now that dosn't work?

MTB
Reply With Quote
  #3 (permalink)  
Old 02-15-12, 08:19
dfeteau dfeteau is offline
Registered User
 
Join Date: Feb 2012
Posts: 7
I have a query that I've created in Access. Results are perfect. When I go to Excel and try to create a link to that query, none of the results show in Excel. I only get the header row and 2 blank rows. I can export the query to an Excel sheet, but I want the convenience of the refresh option.
Reply With Quote
  #4 (permalink)  
Old 02-15-12, 08:49
MikeTheBike MikeTheBike is offline
Registered User
 
Join Date: Apr 2004
Location: Derbyshire, UK
Posts: 714
Yes that's fine, but how are you attempting to make the link?

For instance, are you using VBA: if so could you post the code?
In addition you could also post the SQL string of the query that woork in Access.

MTB
Reply With Quote
  #5 (permalink)  
Old 02-15-12, 09:56
dfeteau dfeteau is offline
Registered User
 
Join Date: Feb 2012
Posts: 7
No, i'm just using the wizard. Data ribbon, Get External Data, From Access, browsing for my database and selecting the query I want to link.
Reply With Quote
  #6 (permalink)  
Old 02-15-12, 13:21
dfeteau dfeteau is offline
Registered User
 
Join Date: Feb 2012
Posts: 7
The only thing that I can think of is that the query is pretty complex (many joins, many iif statements) that it times out after a certain amount of time. does this sound logical?
Reply With Quote
Reply

Tags
access excel link query

Thread Tools Search this Thread
Search this Thread:

Advanced Search
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

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