473,396 Members | 1,713 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,396 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 44069
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: 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...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
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
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
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
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...

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.