Make Table Query and Numeric Overflow Errors

GoKats78

Board Regular
Joined
Aug 22, 2008
Messages
166
I have a database linked to an excel spreadsheet. In my database I have a make-table query. When I attempt to run that query I get a "numeric-overflow" error. Ok...so when i open the query in desing mode and change it to a select query then run it my data is returned OK...then I switch back to design mode, change it to a make-table query and run it, the qurey runs fine - it creates the table with no problems.
 

Excel Facts

What is the last column in Excel?
Excel columns run from A to Z, AA to AZ, AAA to XFD. The last column is XFD.
By default, a number field is set to a Long Integer allowing numbers from -2,147,483,648 to 2,147,483,647.
I'm not sure if this is true when the table is automatically created. But Access only looks at the first few rows of data to determine the data type at any rate

If one of your cells contains a value higher than the data type will allow you'll get the error.

Try creating your table first and appending the data to it - use a Double data type

I hope that helps :)
 
Upvote 0
But why does it work as a select query and not a make-table query?

I can do the double step - but someone else might be using it and not have a clue what to do...that would be my boss...
 
Upvote 0
I tried to edit but my time limit was up....


All my date in the few few (i think 8 is the number of rows access looks at) is consistent - by that I mean the data in each of the columns is the same; some text, some dates, some numbers.. but each in their own column.
 
Upvote 0
Maybe you could create a dummy record at the top of the sheet, with a numeric value of 50000 where you were getting the overflow. Put DUMMY in one of the text fields.
That should force Access to make the number field Long instead of Integer; you can run a second query to delete the dummy record. By chaining them together the user will never know the difference.

Denis
 
Upvote 0
If you suspect that the overflow is numeric, rather than text, my suggestion should fix it because the first several records are used to set the data types and field sizes.
A value of 50000 will ensure that that numeric field is not set as an Integer, which would cause an overflow at 32K.

Denis
 
Upvote 0

Forum statistics

Threads
1,216,084
Messages
6,128,722
Members
449,465
Latest member
TAKLAM

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Back
Top