473,395 Members | 1,571 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,395 software developers and data experts.

"Overflow"

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

Nov 13 '05 #1
4 44067
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.

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

"Spook" <st**************@sainsburys.co.uk> wrote in message
news:11**********************@g14g2000cwa.googlegr oups.com...
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

Nov 13 '05 #2
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.

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

"Spook" <st**************@sainsburys.co.uk> wrote in message
news:11**********************@g14g2000cwa.googlegr oups.com...
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

Nov 13 '05 #3
Cheers for that.

Stephen

Nov 13 '05 #4
Cheers for that.

Stephen

Nov 13 '05 #5

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

2
by: Andy Davis | last post by:
Dear Group I am trying to automate process of adding a new record id in my form using the following code when the user clicks the "Add New Record" button. For example if the last record id is...
0
by: Spook | last post by:
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...
5
by: Jesee | last post by:
I am reading Jeffrey Richter's book "Applied Microsoft .NET Framework programming",i came across "Exception handing". Page 405 says "If the stack overflow occurs within the CLR itself,your...
3
by: SheldonMopes | last post by:
I sometimes get a pop-up box that reads "Overflow" and the module that is executing pauses. It doesn't get caught by my error trapping, and it seems to be randow. By random, I mean usually in the...
5
xxoulmate
by: xxoulmate | last post by:
help on progress bar on error: "overflow" is the message., what is the cause of error., the progressbar value basis on the second(time) progressbar max value = 59 progressbar min value = 0
1
by: rileyjane | last post by:
Hello, I am running a Union query in Access 2003 that combines two other queries. When I run each query individually, they open fine with no problems. But when I try to run the Union query, I...
2
by: johnwaddy | last post by:
I'm clueless to the problem, I have a couple of account with 300+ records and all of a sudden when you recalc it reaches record 256 and pops up this "Overflow" error. I do not have any issues with...
1
by: Tami Robinson | last post by:
I keep getting !Overflow error when running this query: SELECT DISTINCTROW FamilyInfo.FamilyInfoID ,...
1
by: Amy Badgett | last post by:
I keep getting the error: "Overflow" with this piece of MS Access SQL coding: SELECT DISTINCT (SELECT Count(tblCallLog.tblCallLog_gospelPresented) FROM tblCallLog WHERE...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.