Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 33
Default data not carrying over from access to excel

When I am running a query in MSAccess 2007 I get 1315 records, when I run the
query via Excel 2007 connecting to the DB it stops at 691 records. I'm a
little rusty, this is my only query where in the criteria I have an "or". I
was thinking if this had anything to do with a second pass or am I just not
calling it correctly:

SELECT [dbo_Appeal].[Record Number],
[dbo_Appeal].[Type of Case],
[dbo_Appeal].[Appellant Type],
[dbo_Appeal].[Appeal or Grievance],
[dbo_Appeal].DateRecvd,
[dbo_Appeal].DateClosedEH,
[dbo_Appeal].GrievanceReasonID,
[dbo_Appeal].[Case Owner],
[dbo_Appeal].DenialReasonID,
[dbo_Appeal].Region,
[DateClosedEH]-[DateRecvd] AS TAT
FROM [dbo_Appeal]
GROUP BY [dbo_Appeal].[Record Number],
[dbo_Appeal].[Type of Case],
[dbo_Appeal].[Appellant Type],
[dbo_Appeal].[Appeal or Grievance],
[dbo_Appeal].DateRecvd,
[dbo_Appeal].DateClosedEH,
[dbo_Appeal].GrievanceReasonID,
[dbo_Appeal].[Case Owner],
[dbo_Appeal].DenialReasonID,
[dbo_Appeal].Region
HAVING ((([dbo_Appeal].[Type of Case])="Expedited"
Or ([dbo_Appeal].[Type of Case])="Fast Track"
Or ([dbo_Appeal].[Type of Case])="Standard Pre-Service")
AND (([dbo_Appeal].[Appeal or Grievance])="Appeal")
AND (([dbo_Appeal].DateRecvd)#1/1/2009#)
AND (([dbo_Appeal].DateClosedEH) Is Not Null))
OR ((([dbo_Appeal].[Type of Case])<"Part D Standard"
And ([dbo_Appeal].[Type of Case])<"Part D Expedited")
AND (([dbo_Appeal].[Appellant Type]) Like "Member" & "*")
AND (([dbo_Appeal].[Appeal or Grievance])="Appeal")
AND (([dbo_Appeal].DateRecvd)#1/1/2009#) AND (([dbo_Appeal].DateClosedEH)
Is Not Null));

Joe
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
Carrying out calculations on segments of data from within a workbo Gordon[_4_] Excel Worksheet Functions 1 August 18th 09 08:51 AM
File Paths and Carrying Data into Future Budget Periods ljubav Setting up and Configuration of Excel 0 May 7th 08 06:38 PM
Can Excel access data from Access?! Al Excel Discussion (Misc queries) 5 April 5th 08 03:52 PM
Carrying data over in worksheets roxiemayfield Excel Worksheet Functions 4 December 5th 07 10:00 PM
Carrying Detail Data to Subtotal Row PatK Excel Worksheet Functions 0 August 16th 06 03:47 PM


All times are GMT +1. The time now is 02:33 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"