A Microsoft Office (Excel, Word) forum. OfficeFrustration

If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below.

Go Back   Home » OfficeFrustration forum » Microsoft Access » Setting Up & Running Reports
Site Map Home Register Authors List Search Today's Posts Mark Forums Read  

Runtime Error 6 Overflow



 
 
Thread Tools Display Modes
  #1  
Old April 9th, 2010, 07:32 PM posted to microsoft.public.access.reports
Kenny G
external usenet poster
 
Posts: 36
Default Runtime Error 6 Overflow

Access 2007

When I click the command button below it will allow the view of a report and
sometimes it will give me the message "Runtime Error 6 Overflow". At that
time the line DoCmd.OpenReport "Single Unit Restraints Reporting For Selected
Timeframe", is highlighted in yellow. Any idea what the problem is?

Private Sub cmdSelectSingleUnitForReport_Click()
DoCmd.SetWarnings False
DoCmd.OpenQuery "qupdtUnit"
DoCmd.Requery
DoCmd.SetWarnings True
DoCmd.OpenReport "Single Unit Restraints Reporting For Selected
Timeframe", acViewPreview
End Sub

Thank you,
--
Kenny G
  #2  
Old April 9th, 2010, 08:00 PM posted to microsoft.public.access.reports
John Spencer
external usenet poster
 
Posts: 7,815
Default Runtime Error 6 Overflow

That usually means that you have too large a number being assigned to a field.
For instance, you have an integer field that you are trying to sum and the
sum exceeds 32K. If that happens, you might need to set the number type of
the field to LONG even though you never store a number that is larger than
1000. The sum of the number can exceed the 32K limit.

Basically the sum "field" inherits the data type of the field that is being
summed.

John Spencer
Access MVP 2002-2005, 2007-2010
The Hilltop Institute
University of Maryland Baltimore County

Kenny G wrote:
Access 2007

When I click the command button below it will allow the view of a report and
sometimes it will give me the message "Runtime Error 6 Overflow". At that
time the line DoCmd.OpenReport "Single Unit Restraints Reporting For Selected
Timeframe", is highlighted in yellow. Any idea what the problem is?

Private Sub cmdSelectSingleUnitForReport_Click()
DoCmd.SetWarnings False
DoCmd.OpenQuery "qupdtUnit"
DoCmd.Requery
DoCmd.SetWarnings True
DoCmd.OpenReport "Single Unit Restraints Reporting For Selected
Timeframe", acViewPreview
End Sub

Thank you,

 




Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Forum Jump


All times are GMT +1. The time now is 03:30 PM.


Powered by vBulletin® Version 3.6.4
Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Copyright ©2004-2024 OfficeFrustration.
The comments are property of their posters.