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

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 7536
On 23 Jun 2005 02:20:57 -0700, st**********@gmail.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
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....
1
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...
6
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...
2
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...
2
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
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...
4
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...
1
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...
2
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...
1
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.. ...
1
by: CloudSolutions | last post by:
Introduction: For many beginners and individual users, requiring a credit card and email registration may pose a barrier when starting to use cloud servers. However, some cloud server providers now...
0
by: Faith0G | last post by:
I am starting a new it consulting business and it's been a while since I setup a new website. Is wordpress still the best web based software for hosting a 5 page website? The webpages will be...
0
by: ryjfgjl | last post by:
In our work, we often need to import Excel data into databases (such as MySQL, SQL Server, Oracle) for data analysis and processing. Usually, we use database tools like Navicat or the Excel import...
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: 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: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
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: 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...

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.