473,387 Members | 1,664 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,387 software developers and data experts.

Overflow

I am getting an "overflow" error (not numerical overflow) when running a form.

This error is only appearing on records that were added to the table after a certain date. If I run the form using older records from the same table, I don't get this error. I've tried a compact and repair, but it doesn't help.

Any suggestions of what may be happening here?
Feb 16 '08 #1
10 2255
ADezii
8,834 Expert 8TB
I am getting an "overflow" error (not numerical overflow) when running a form.

This error is only appearing on records that were added to the table after a certain date. If I run the form using older records from the same table, I don't get this error. I've tried a compact and repair, but it doesn't help.

Any suggestions of what may be happening here?
How are Records being added to your Table?
Feb 16 '08 #2
How are Records being added to your Table?
Through a form. However, this has worked for a long time without error.
Feb 16 '08 #3
ADezii
8,834 Expert 8TB
Through a form. However, this has worked for a long time without error.
Would you be willing and able to send the the Database as an E-Mail Attachment for me to have a look at? To be perfectly honest with you, this would seem to be a difficult problem to resolve with so little information to go on.
Feb 16 '08 #4
Would you be willing and able to send the the Database as an E-Mail Attachment for me to have a look at? To be perfectly honest with you, this would seem to be a difficult problem to resolve with so little information to go on.
Yes, I agree. I'm trying to resolve the issue from a distance and nobody is "fessing up" to having made any changes...it's like looking for a needle in a haystack. Unfortunatly, I'm not allowed to send the data. I have the data and forms/reports separated and can send those. However, wouldn't it seem that the problem would be in the data, as it only happens with records added after a certain date?
Feb 16 '08 #5
ADezii
8,834 Expert 8TB
Yes, I agree. I'm trying to resolve the issue from a distance and nobody is "fessing up" to having made any changes...it's like looking for a needle in a haystack. Unfortunatly, I'm not allowed to send the data. I have the data and forms/reports separated and can send those. However, wouldn't it seem that the problem would be in the data, as it only happens with records added after a certain date?
Are the Data Types of the Fields being added in sync with the Data Types in the Table to which they are being added?
Feb 16 '08 #6
missinglinq
3,532 Expert 2GB
Obviously, you reached some sort of limit with the new records!

"I am getting an "overflow" error (not numerical overflow)"

What exactly do you mean by this? Is this Error 6 Overflow?

Usually when you get this type of error, in a long running program, it means that some type of running total has finally exceeded the limit of the datatype it's assigned to. A running total of clients served, for example, defined as an Integer in the Table Def, will run correctly for years, until the number of clients exceed
32767, the max for an Integer, and then bomb out.
Feb 16 '08 #7
Obviously, you reached some sort of limit with the new records!

"I am getting an "overflow" error (not numerical overflow)"

What exactly do you mean by this? Is this Error 6 Overflow?

Usually when you get this type of error, in a long running program, it means that some type of running total has finally exceeded the limit of the datatype it's assigned to. A running total of clients served, for example, defined as an Integer in the Table Def, will run correctly for years, until the number of clients exceed
32767, the max for an Integer, and then bomb out.
There is no numerical code associated with the error message...just says "overflow."

The primary key for this table is a long integer and the value where it begins to generate this error is 32774.

Is there anything that can be done?

Thanks!
Feb 16 '08 #8
Are the Data Types of the Fields being added in sync with the Data Types in the Table to which they are being added?
It doesn't matter whether I add a new record to the table directly or through a form; I still get an overflow error for any record added after a given date when using the form.
Feb 16 '08 #9
I think I solved the problem....

In my form where I was picking up the primary key of the record, I had the variable defined as an integer. When I change the definition to Long, it picks up the value and doesn't "overflow."

Thanks for all the information....I wouldn't even have thought to check this without you! Much thanks again!
Feb 16 '08 #10
missinglinq
3,532 Expert 2GB
Glad we could help!

Linq ;0)>
Feb 16 '08 #11

Sign in to post your reply or Sign up for a free account.

Similar topics

15
by: Andrew Fedoniouk | last post by:
I have a simple test document which produce the following in Mozilla and Opera: http://terrainformatica.com/w3/p2/problem1.png Internet Explorer behaves as per recommendation (I guess) Did I...
6
by: Kai Grossjohann | last post by:
I have a frame which is supposed to contain a list of links. The clickable area of each link comprises a picture followed by some text. I want the text to be cut at the right hand side when the...
4
by: aling | last post by:
Given: signed a, b; How to judge overflow of the sum of these two operands? Just use one *if* statement. Is this statement right? if ((a>0 && b>0 && sum<=0) || (a<0 && b<0 && sum>=0)) //...
19
by: Jim | last post by:
I have spent the past few weeks designing a database for my company. The problem is I have started running into what I believe are stack overflow problems. There are two tab controls on the form...
27
by: REH | last post by:
I asked this on c.l.c++, but they suggested you folks may be better able to answer. Basically, I am trying to write code to detect overflows in signed integer math. I am trying to make it as...
7
by: wij | last post by:
Hi: Is there better way of detecting multiplication overflow for type long than by using double precision of lldiv to verify the result? Thanks in advance. I.J.Wang
25
by: junky_fellow | last post by:
Is there any way by which the overflow during addition of two integers may be detected ? eg. suppose we have three unsigned integers, a ,b, c. we are doing a check like if ((a +b) > c) do...
8
by: starffly | last post by:
In my program, the caculated value is supposed to be no more than the constant named MAXINT,otherwise, overflow error will be informed.however, I cannot test if the value exceeds MAXINT within the...
2
by: lexor | last post by:
Hi! I'm struggling with a strange IE behavior regarding tables. I have a table like the following one <table cellpadding="0" cellspacing="0" border="1" width="500"> <tr> <td><div...
42
by: thomas.mertes | last post by:
Is it possible to use some C or compiler extension to catch integer overflow? The situation is as follows: I use C as target language for compiled Seed7 programs. For integer computions the C...
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
0
by: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
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
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
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...

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.