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 / General 1 / August 2005

Tip: Looking for answers? Try searching our database.

"Overflow"

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
Spook - 03 Aug 2005 14:12 GMT
Running a particular Access report or the query associated with it
brings up the warning "Overflow". What does this mean? WhatI have I
done wrong?

Both report and query were fine before lunch and the only thing I have
changed is updated the data from one of the tables it pull info from.

HELP!!!!!!!!!!!!!!!!!!!
PLEASE
Allen Browne - 03 Aug 2005 15:55 GMT
Overflow means the number is too large for the data type.

As an example, open the Immediate Window (Ctrl+G), and enter:
   ? 200 * 200
It overflows, because the default data type in VBA is Integer (16-bit),
which runs out at 32767. 40000 is too big, so we must convert one of the
numbers to a Long Integer (32-bit) so it does not overflow:
   ? CLng(200) * 200

Use CDbl() to convert to a double, CCur() to convert to Currency, CVDate()
to convert to date.

Signature

Allen Browne - Microsoft MVP.  Perth, Western Australia.
Tips for Access users - http://allenbrowne.com/tips.html
Reply to group, rather than allenbrowne at mvps dot org.

> Running a particular Access report or the query associated with it
> brings up the warning "Overflow". What does this mean? WhatI have I
[quoted text clipped - 5 lines]
> HELP!!!!!!!!!!!!!!!!!!!
> PLEASE
Spook - 03 Aug 2005 16:45 GMT
Cheers for that.

Stephen
 
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.