Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 1
Default Why are access query results different in Excel

I have a query in Access. The SQL for the query is:

SELECT Format([qryContributionsAll]![Date],'yyyy') &
Format([qryContributionsAll]![Date],'mm') AS [Month],
Sum(qryContributionsAll.Amount) AS Total
FROM qryContributionsAll
WHERE (((qryContributionsAll.Comment) Not Like "*Designated*"))
GROUP BY Format([qryContributionsAll]![Date],'yyyy') &
Format([qryContributionsAll]![Date],'mm');

In Excel 2007 I went through the process of importing the query into Excel.
I did this by going to the Data tab, choosing "From Access", I choose my
Access database, I choose my query, I choose to view the data as a table.
Then, the data appears in Excel.

The problem is that the data that appears in Excel is different than the
data that appears in Access. You can see from my SQL above that I have
"WHERE" statement that filters the data. When I view the query in Access the
data is filtered according to the WHERE statement. However, when the data
appers in Excel the WHERE statement is not applied. In Excel the data
appears as if there is no WHERE statement in the query.

I am trying to figure out how to make the WHERE statement apply to the data
when it appears in Excel.
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
Access query results to Excel piano banger Excel Discussion (Misc queries) 4 December 8th 06 09:32 AM
Can I use MS Query in Excel like an Append Query in Access Sam Wardill Excel Discussion (Misc queries) 0 April 11th 06 02:41 PM
Store Excel Results in Access ernie Excel Discussion (Misc queries) 4 March 9th 06 03:37 PM
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 03:32 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"