Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 30
Default MS Access Query Question

I have several very simple queries in my Excel workbook that get summary data
from an Access back end file. The queries all return a single number -
usually a count of the number of items in a particular field that match
particular criteria. The query in Excel references a query in the Access
back end that does all the work and returns "Expr1" to Excel.

I noticed that even though I am only returning a single number, the query
sometimes takes up 2 or even 3 cells on the worksheet. I can tell this by
the fact that the "!" symbol (refresh query) lights up not only when I click
in the cell with the query, but also in one or two cells below that. I can
also tell by checking the "ResultRange.Count" in Visual Basic.

Why are these queries taking up extra cells? Is there a way to control/fix
that. It wouldn't be so bad if I knew it was always one extra cell, but
sometimes it's two extra cells, and this messes up my formatting!

Thanks in advance,

Eric
-------------------------
If toast always lands butter-side down, and cats always land on their feet,
what happen if you strap toast on the back of a cat and drop it?
Steven Wright (1955 - )
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
What is the wild card for an Access query (MS query) parameter? AFSSkier Excel Programming 2 April 1st 09 05:26 PM
Excel-Query-Access Question LarryP Excel Programming 3 May 28th 08 09:11 PM
Excel Pivot Table or Access Cross Tab Query Question greene2j Excel Discussion (Misc queries) 0 January 14th 08 01:49 AM
Microsoft Query rejects "nz" function in Access Query Vaughan Excel Discussion (Misc queries) 0 May 4th 05 05:20 PM
How to use a Access Query that as a parameter into Excel database query Karen Middleton Excel Discussion (Misc queries) 1 December 13th 04 07:54 PM


All times are GMT +1. The time now is 07:46 AM.

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"