Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
Home
Discussion GroupsFormsForms ProgrammingQueriesModules / DAO / VBAReports / PrintingMacrosDatabase DesignSecurityConversionImporting / LinkingSQL Server / ADPMultiuser / NetworkingReplicationSetup / ConfigurationDeveloper ToolkitsActiveX ControlsNew UsersGeneral 1General 2
Access DirectoryToolsTutorialsUser Groups
Related Topics
SQL ServerOther DB ProductsMS OfficeMore Topics ...

MS Access Forum / Modules / DAO / VBA / October 2003

Tip: Looking for answers? Try searching our database.

Overflow

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
Craig - 28 Oct 2003 19:19 GMT
It is really important that I find out why an error
message pops up that simply says: Overflow.

I have tried to look in the help section for this, but I
cannot find anything about it.  

Under what circumstances will it pop up?  How can it be
fixed?  What does it mean?  Why does the error not
explained?  

If anyone can answer these questions, please e-mail me at
craig_madrin@goodyear.com

Thank you for your help!!!
Dev Ashish - 28 Oct 2003 19:36 GMT
"Craig" <anonymous@discussions.microsoft.com> wrote in news:002f01c39d80
$1410b5c0$a501280a@phx.gbl:

> I have tried to look in the help section for this, but I
> cannot find anything about it.  

I clicked 'Help' on the actual error messagebox and this is what I got
from help. (First the routine)

Sub Test
Dim i as integer
 i  = 60000
End Sub

Overflow (Error 6)

An overflow results when you try to make an assignment that exceeds the
limitations of the target of the assignment. This error has the following
causes and solutions:

The result of an assignment, calculation, or data type conversion is too
large to be represented within the range of values allowed for that type
of variable.
Assign the value to a variable of a type that can hold a larger range of
values.

An assignment to a property exceeds the maximum value the property can
accept.
Make sure your assignment fits the range for the property to which it is
made.

You attempt to use a number in a calculation, and that number is coerced
into an integer, but the result is larger than an integer. For example:
   Dim x As Long
   x = 2000 * 365   ' Error: Overflow
To work around this situation, type the number, like this:

   Dim x As Long
   x = CLng(2000) * 365
For additional information, select the item in question and press F1 (in
Windows) or HELP (on the Macintosh).

-- Dev
- 28 Oct 2003 19:37 GMT
An overflow usually refers to something that has
gotten "too big". If you are using a veriable to total
something and the number gets to big for the variabler
type, you get an overflow. If you happen to call to many
sub routines (nesting), you might be overflowing the
stack (which is a structure used to hold function/sub
return information and variables. There are host of other
possibilities...

Review the datatypes of your variables to make sure your
totals can "fit" into the variable type. Floating point
variable are usually able to hold large values than
integer types.

Don
>-----Original Message-----
>It is really important that I find out why an error
[quoted text clipped - 12 lines]
>Thank you for your help!!!
>.
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2009 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.