473,402 Members | 2,064 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,402 software developers and data experts.

Error running Make table Query

Hi,
I am trying to run a make table query and it's giving me the following error:
"Numeric Field Overflow"

Here the query:

Expand|Select|Wrap|Line Numbers
  1. SELECT tblPCRAFees.[Plan ID],
  2.        tblPCRAFees.[Plan Name],
  3.        tblPCRAFees.[Part# Count],
  4.        IIf([Plan ID]="SSSG" Or [Plan ID]="QUADA" Or [Plan ID]="169","50","35.70") AS Charge,
  5.        [Part# Count]*[Charge] AS Fees,
  6.        IIf([Plan ID]="UNSAPS" Or [Plan ID]="AAM" Or [Plan ID]="ROPC" Or [Plan ID]="North*","Invoice","Plan Assets") AS Method
  7. INTO tblPCRAFeesFinal
  8. FROM tblPCRAFees
  9. WHERE (((tblPCRAFees.[Investment ID])="FSIX"
  10.    Or (tblPCRAFees.[Investment ID])="Fidelity"
  11.    Or (tblPCRAFees.[Investment ID])="Brokerage"
  12.    Or (tblPCRAFees.[Investment ID])="PCRA"));
Thanks in advance
Feb 21 '07 #1
2 2636
Problem sovled. Thanks

Solution:

"Numeric Field Overflow" error message occurs when you query a table that is linked to Excel spreadsheet

Access assigns a data type for each field of the Excel spreadsheet. This assignment is based on the data that is contained in the first eight rows. For example, if a field has a Number data type that is in the first eight rows and then has text values in some of the remaining rows, Access assigns the Number data type to the link table field. This causes Access to fail to link the records that have text data values. When you query this field, Microsoft Jet Database Engine encounters text where a number is expected. The query fails with the error message in the "Symptoms" section.



WORKAROUND
To work around this problem, you must make sure that the data values in each field of the source Excel spreadsheet are exactly the same data type. Or, if the fields of the Excel spreadsheet contains data values of a mixed data type, then format the field as Text. Use the following code to reenter the values in the cells. Then, link the Excel spreadsheet to Access. To do this, follow these steps:

Note Before you start these steps, you must backup your Excel spreadsheet. 1. Open the source spreadsheet in Excel.
2. In the spreadsheet, identify the fields that have data values of mixed data types.
3. Select the identified columns and then format the cells in the spreadsheet as Text.
4. Create a macro in Excel that contains the following procedure:Sub Addspace() Dim cell As Object For Each cell In Selection cell.Value = " " & cell.Value cell.Value = Right(cell.Value, Len(cell.Value) - 1) NextEnd Sub


5. Select the fields in the spreadsheet that contain data values of mixed data types. Run the macro that you created in step 4.

Note If an error occurs when you run the macro on the problem cells, ignore the error.
6. Save the spreadsheet.
7. Open your database in Access.
8. From your database, link to the source spreadsheet in Excel.
Feb 21 '07 #2
Rabbit
12,516 Expert Mod 8TB
I'm glad you solved your problem but next time you should let us know you were running a query on an excel spreadsheet.
Feb 21 '07 #3

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

Similar topics

0
by: Somerset Bob | last post by:
I've posted my query at the phpbb forum, where I got half an answer and then no more. I posted it again at another phpbb forum, where I got half an answer and no more. I posted it in alt.php, where...
0
by: Somerset Bob | last post by:
I've posted my query at the phpbb forum, where I got half an answer and then no more. I posted it again at another phpbb forum, where I got half an answer and no more. I posted it in alt.php, where...
2
by: Mal | last post by:
Greetings. I have a perplexing problem....please help. I am having a problem with an insert query. (SQL below) When I run the query via code (executing the SQL string) it crashes Access and...
4
by: MLH | last post by:
< < < VERY LOW PRIORITY POST > > > When I'm creating a query in the QBE grid whose SQL looks like this... INSERT INTO tblOwners (OwnerFName, OwnerLName, OwnerAddr, OwnerCity, OwnerState,...
669
by: Xah Lee | last post by:
in March, i posted a essay “What is Expressiveness in a Computer Language”, archived at: http://xahlee.org/perl-python/what_is_expresiveness.html I was informed then that there is a academic...
0
by: Leon | last post by:
I keep geting this error in the IE when trying to run the scrept below from an ASP page. Can any one help please. Error Type: Provider (0x80040E37) Table does not exist. /gal.asp, line 43
9
by: Ecohouse | last post by:
I have a main form with two subforms. The first subform has the child link to the main form identity key. subform1 - Master Field: SK Child Field: TrainingMasterSK The second subform has a...
1
by: Lpitt56 | last post by:
I am running MS Access 2007 and I want to update an Outlook Address book from my Access Database. I started out by importing the Outlook Address Book as a linked table and it linked fine. I then...
11
by: fniles | last post by:
One of our application uses VB6 and Access97 database. Another application uses VB.NET 2005. This morning for about 15 seconds when the application tries to read either a query or a table from the...
15
by: Lawrence Krubner | last post by:
Does anything about this script look expensive, in terms of resources or execution time? This script dies after processing about 20 or 25 numbers, yet it leaves no errors in the error logs. This is...
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
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,...
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
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...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new...

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.