Results 1 to 9 of 9
  1. #1
    nick243 is offline Competent Performer
    Windows 7 64bit Access 2002
    Join Date
    May 2016
    Posts
    185

    runtime error 6 overflow

    This is the Append query that I am trying to run and I am getting an overflow error.
    Click image for larger version. 

Name:	Query.png 
Views:	20 
Size:	36.3 KB 
ID:	29592

    This is the data I am multiplying by which is a double field size.




    Click image for larger version. 

Name:	equalto.png 
Views:	20 
Size:	55.5 KB 
ID:	29594
    Any help would be appreciated.

    Thanks,
    Nick
    Last edited by nick243; 07-24-2017 at 09:34 AM. Reason: Wrong Picture

  2. #2
    RuralGuy's Avatar
    RuralGuy is offline Administrator
    Windows 10 Access 2013 32bit
    Join Date
    Mar 2007
    Location
    8300' in the Colorado Rocky Mountains
    Posts
    12,922
    Is the destination for the results a Double Number as well?

  3. #3
    aytee111 is offline Competent At Times
    Windows 10 Access 2013 64bit
    Join Date
    Nov 2011
    Location
    Nomad
    Posts
    3,936
    Get back to basics. Change it to a select query, does it still happen? Remove the fields one by one to determine the exact field causing the issue. If it only happens on the append, again remove all other fields and test with just the one.

  4. #4
    nick243 is offline Competent Performer
    Windows 7 64bit Access 2002
    Join Date
    May 2016
    Posts
    185
    It is not appending the error rate to the table it is just getting rid of anything from be1j query where the error rate is less than the dept rate * 1.2 . Am I reading the query correctly?

  5. #5
    nick243 is offline Competent Performer
    Windows 7 64bit Access 2002
    Join Date
    May 2016
    Posts
    185
    Quote Originally Posted by aytee111 View Post
    Get back to basics. Change it to a select query, does it still happen? Remove the fields one by one to determine the exact field causing the issue. If it only happens on the append, again remove all other fields and test with just the one.
    I went back and did what you said, It is the error rate field that is prohibiting this query from working and giving the overflow error.

  6. #6
    aytee111 is offline Competent At Times
    Windows 10 Access 2013 64bit
    Join Date
    Nov 2011
    Location
    Nomad
    Posts
    3,936
    Are there null values in this field? Add Nz(...). Otherwise run the b-e-j1 query by itself and see if there are any values that don't look right. Also in that query, add a new field with the same calculation. Altho this may be a table, in which case create a query with that calculation - it is easier to troubleshoot very basic queries.

    Note: do some research on naming conventions. Tables are named tbl... or ...tbl, queries qry... or ...qry. Also get rid of spaces in names, no special characters except underscore (_), no reserved words such as Date, etc. These things will come back and bite you further down the road.

  7. #7
    John_G is offline VIP
    Windows 7 32bit Access 2010 32bit
    Join Date
    Oct 2011
    Location
    Ottawa, ON (area)
    Posts
    2,615
    The calculation of a value called ErrorRate will usually involve mathematical division somewhere. How are you calculating that errorRate? Might there be a division by zero, or division by a very small number somewhere? Is ErrorRate a calculated field in the table?

  8. #8
    nick243 is offline Competent Performer
    Windows 7 64bit Access 2002
    Join Date
    May 2016
    Posts
    185
    Quote Originally Posted by aytee111 View Post
    Are there null values in this field? Add Nz(...). Otherwise run the b-e-j1 query by itself and see if there are any values that don't look right. Also in that query, add a new field with the same calculation. Altho this may be a table, in which case create a query with that calculation - it is easier to troubleshoot very basic queries.

    Note: do some research on naming conventions. Tables are named tbl... or ...tbl, queries qry... or ...qry. Also get rid of spaces in names, no special characters except underscore (_), no reserved words such as Date, etc. These things will come back and bite you further down the road.
    I noticed there was an error# in error rate because one of them is dividing 0 by 0 . I have not seen any null. It is a query. I will keep looking at it. I keep searching the related tables for information.

  9. #9
    aytee111 is offline Competent At Times
    Windows 10 Access 2013 64bit
    Join Date
    Nov 2011
    Location
    Nomad
    Posts
    3,936
    That is what is causing your problem, then. Remove that error in that field by using Nz or checking for nulls in numeric fields before dividing, or whatever the case is.

Please reply to this thread with any new information or opinions.

Similar Threads

  1. runtime error 6n overflow
    By CHEECO in forum Access
    Replies: 5
    Last Post: 06-13-2016, 08:34 AM
  2. overflow error
    By emir in forum Access
    Replies: 5
    Last Post: 11-23-2015, 07:47 AM
  3. Overflow Error
    By jtm013 in forum Programming
    Replies: 15
    Last Post: 01-07-2015, 01:01 PM
  4. Overflow Error
    By pj33558 in forum Reports
    Replies: 1
    Last Post: 06-19-2014, 10:50 AM
  5. Overflow Error
    By mike02 in forum Programming
    Replies: 14
    Last Post: 07-12-2013, 10:53 AM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
Other Forums: Microsoft Office Forums