473,789 Members | 2,726 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Numeric Field Overflow

Hi all,

I'm hoping someone can stop me tearing (what's left of) my hair out
over this problem...

I have a linked Excel file from which I append the data to an empty
local Access table.
I have a macro which runs a delete query to empty the local table, then
the append query to update it with the new info from the spreadsheet.

I'm getting the error "Numeric Field Overflow" when running the
append query, it doesn't happen every time though.

I've found that I can make the append query run by going in to the
design view and making a change to something (anything), for example:
Re-selecting the "Append to" part of one of the fields (i.e. The
Supplier field updates to "Supplier" in the table and I'll
re-select "Supplier" from the drop down list, they query will then
run as it should)

Only one of the fields in the table is a number field and it is set to
Long Integer.

There are two currency fields and two date fields, everything else is
text.

I don't understand how the macro will run sometimes and, using the
exact same data, not run the next time?

Can a Numeric Field Overflow apply to a currency field or date?

My access knowledge is limited.
Access 2000, Win XP

Steve

Nov 13 '05 #1
2 7605
On 23 Jun 2005 02:20:57 -0700, st**********@gm ail.com wrote:
Hi all,

I'm hoping someone can stop me tearing (what's left of) my hair out
over this problem...

I have a linked Excel file from which I append the data to an empty
local Access table.
I have a macro which runs a delete query to empty the local table, then
the append query to update it with the new info from the spreadsheet.

I'm getting the error "Numeric Field Overflow" when running the
append query, it doesn't happen every time though.

I've found that I can make the append query run by going in to the
design view and making a change to something (anything), for example:
Re-selecting the "Append to" part of one of the fields (i.e. The
Supplier field updates to "Supplier" in the table and I'll
re-select "Supplier" from the drop down list, they query will then
run as it should)

Only one of the fields in the table is a number field and it is set to
Long Integer.

There are two currency fields and two date fields, everything else is
text.

I don't understand how the macro will run sometimes and, using the
exact same data, not run the next time?

Can a Numeric Field Overflow apply to a currency field or date?


Access optimizes stored queries as they are executed.

Obviously, Access's optimization is causing problems.

You have found the solution: re-save the query so that the
optimization is eliminated.

If doing it manually, before re-running your macro, is too burdensome
for you, you can create a routine in VBA that will copy and re-save
your query.

If you want that, respond in the positive and somebody with enough
time to rough out that solution will no doubt post it for you.

mike
Nov 13 '05 #2
Thanks Mike, that's a great help.

I can't do it manually as it's a db that will be remote from me. If
anyone can help with the code I would appreciate it, in the mean-time
I'll have a crack at it myself as that's the best way to learn!

Thanks again.

Steve

Nov 13 '05 #3

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

Similar topics

2
9399
by: DiggidyMack69 | last post by:
Hello folks, I have a servlet in a Java web app that accesses an oracle table with a column that is NUMBER(12) When I put an integer into it of 10 digits or larger I get a numeric overflow error. I am using the getInt method and putting that into a java int variable. Do either of these have a max length and if so what should I be using for large number?? thanks in advance, DM
1
9979
by: JuniorLinn | last post by:
Hi there - I would like to share this strip of code with our SQL 2000 DBA community. The code below strips all non-numeric characters from a given string field and rebuilds the string. Very simple, but I had to build it from scratch due the lack of info on this specific matter. I am sure there are better solutions out there, although I will be glad if this script can help anyone. Feel free to modify and comment it back. Regards,
6
4123
by: Eugene | last post by:
Hi, I have a field: usercode In Query Analyzer: UPDATE tblUserProcess SET usercode = 1002 Result: Error "Arithmetic overflow error for data type tinyint, value = 1002. The statement has been terminated."
2
8678
by: Robert McEuen | last post by:
Using Access 97, Windows XP I'm receiving a Numeric Field Overflow error during text import that I did not receive before I split my database. Another thread I found suggested that the cause of this error might be due to columns on the text file being in a different order than fields in the destination table, but they're the same in my case. I'm thinking a workaround might be to import to a temp table in the front-end, run an append...
2
8393
by: Eugene | last post by:
Hi, In Query Analyzer: update tblUserProcess set usercode = 1002 Error: Arithmetic overflow error for data type tinyint, value = 1002. The statement has been terminated.
1
3472
by: BillCo | last post by:
I've been running a text-to-table import as part of a daily routine for years and I've just added a few new fields and updated the import spec. The strange thing is that it works perfectly when importing to a local table, but once I try to run it on an identical linked table it spits up a "numeric field overflow" error. In the past it has imported to the linked table with no problems, but it's been doing this since I increased the number...
4
7617
by: darrel | last post by:
I'm getting this error: Arithmetic overflow error converting numeric to data type numeric. Triggered on this line of my code: objOleDbAdapter.Fill(DS, "rss") Everything works when this is pointed at one DB server (our staging server) but when we point it at another DB server (our production server) I get the error.
1
18862
by: sonata | last post by:
I am trying to compare two fields which are char data typr. BUT the comparision must be arithemetic in nature. so i tried to cast both the data base field and my parameter field to big int types which failed. I tried for Decimal type conversion and then comparision. It gave me the above error.
2
686
by: jgscott3 | last post by:
I have a query that simply totals a number of fields from a linked table. If I run it several times, it works fine for a couple of runs and then inexplicably returns a numeric field overflow error message. If I then open it in design view and change the format of any total field (it doesn't seem to matter which one!), it will again run fine a couple of times. Then the error message will occur again. Can anyone please explain this and...
1
3433
by: srinivasan2009 | last post by:
Hi, While Running macro i am getting error in a particular query "Numeric field overflow" For which i am opening that query and just saving the query. and query is starts executing.. Whether any solutions ....Pl reply with your feedback
0
9666
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, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look ! Part I. Meaning of...
0
9511
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 effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
0
10412
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, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. Here is my compilation command: g++-12 -std=c++20 -Wnarrowing bit_field.cpp Here is the code in...
1
10142
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 Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
0
9986
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 protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
0
9021
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, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own.... Now, this would greatly impact the work of software developers. The idea...
0
6769
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert into image. Globals.ThisAddIn.Application.ActiveDocument.Select();...
1
4093
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
2
3703
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.

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.