PC Review


Reply
Thread Tools Rate Thread

How do I resolve recordset overflow?

 
 
DHM
Guest
Posts: n/a
 
      29th Nov 2008
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 With Quote
 
 
 
 
Mike
Guest
Posts: n/a
 
      29th Nov 2008
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 With Quote
 
DHM
Guest
Posts: n/a
 
      30th Nov 2008
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 With Quote
 
 
 
Reply

Thread Tools
Rate This Thread
Rate This Thread:

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 Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
User SID's won't resolve, group SID's seem to resolve Rich Microsoft Windows 2000 Security 0 6th Jan 2009 08:50 PM
Binding a form to a disconnected recordset and making it capable to update such recordset Yarik Microsoft Access Form Coding 2 22nd Nov 2006 02:18 AM
How to loop through a recordset and update the field of a recordset or delete current record Karen Middleton Microsoft Access Macros 1 4th Jan 2005 10:30 AM
Cannot resolve text-URLs, but can resolve IP adrs Kevin F Microsoft Windows 2000 DNS 1 24th Jun 2004 03:37 AM
How to Resolve PS/2 Mouse Ring Buffer Overflow Jeffrey Ritz Microsoft Windows 2000 Hardware 0 10th Oct 2003 03:37 PM


Features
 

Advertising
 

Newsgroups
 


All times are GMT +1. The time now is 11:35 PM.