Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
DHM DHM is offline
external usenet poster
 
Posts: 13
Default How do I resolve recordset overflow?

I am using VBA in Excel to open an Access2003 database (~150M in size). It
worked fine but now I'm seeing an overflow error (#6) when I do an
OpenRecordset. Are there any ways to avoid this problem without using
Server? I ran the compress/repair option on the database and split the
database between tables and queries with no luck. ALSO, if I move to
Server, will I still have this problem, i.e., is it a recordset size problem
in EXCEL?

Thanks,
-David
  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 3,101
Default How do I resolve recordset overflow?

Are you dividing in you query

"DHM" wrote:

I am using VBA in Excel to open an Access2003 database (~150M in size). It
worked fine but now I'm seeing an overflow error (#6) when I do an
OpenRecordset. Are there any ways to avoid this problem without using
Server? I ran the compress/repair option on the database and split the
database between tables and queries with no luck. ALSO, if I move to
Server, will I still have this problem, i.e., is it a recordset size problem
in EXCEL?

Thanks,
-David

  #3   Report Post  
Posted to microsoft.public.excel.programming
DHM DHM is offline
external usenet poster
 
Posts: 13
Default How do I resolve recordset overflow?

No. I've traced the offending query to the following SQl statement.:

SELECT [MPM WBS Table].[WBS or NWA], [MPM WBS Table].Parent, Sum([EOC Data
Table].[BCWS Hrs]) AS [SumOfBCWS Hrs], Sum([EOC Data Table].[BCWS Cost]) AS
[SumOfBCWS Cost], Sum([EOC Data Table].[ETC Hrs]) AS [SumOfETC Hrs], Sum([EOC
Data Table].[ETC Cost]) AS [SumOfETC Cost], Sum([EOC Data Table].[BCWP Hrs])
AS [SumOfBCWP Hrs], Sum([EOC Data Table].[BCWP Cost]) AS [SumOfBCWP Cost],
Sum([EOC Data Table].[ACWP Hrs]) AS [SumOfACWP Hrs], Sum([EOC Data
Table].[ACWP Cost]) AS [SumOfACWP Cost]
FROM [EOC Data Table] INNER JOIN [MPM WBS Table] ON [EOC Data Table].[WBS
ID] = [MPM WBS Table].[WBS or NWA]
WHERE ((([EOC Data Table].YYYYMM)<=200810))
GROUP BY [MPM WBS Table].[WBS or NWA], [MPM WBS Table].Parent;

This works if the "WHERE" is 200810, but not for values <=200810. (This is
actually a date range in YYYYMM format.) It even overflows even for YYYYMM
between 200805 and 200810.

"Mike" wrote:

Are you dividing in you query

"DHM" wrote:

I am using VBA in Excel to open an Access2003 database (~150M in size). It
worked fine but now I'm seeing an overflow error (#6) when I do an
OpenRecordset. Are there any ways to avoid this problem without using
Server? I ran the compress/repair option on the database and split the
database between tables and queries with no luck. ALSO, if I move to
Server, will I still have this problem, i.e., is it a recordset size problem
in EXCEL?

Thanks,
-David

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
Is there a way to use Formula to resolve Sky Excel Worksheet Functions 5 May 7th 09 01:07 AM
#REF! Error Resolve? Dan the Man[_2_] Excel Worksheet Functions 2 July 30th 07 03:28 AM
Did you ever resolve this? [email protected] Excel Discussion (Misc queries) 1 April 24th 07 02:34 PM
how to resolve a printer name Bert van den Brink Excel Programming 1 July 30th 06 10:39 AM
Type recordset/recordset? FlaviusFlav[_9_] Excel Programming 4 May 24th 04 12:16 PM


All times are GMT +1. The time now is 04:56 PM.

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
Copyright ©2004-2025 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"