Results 1 to 5 of 5
  1. #1
    thesmug1 is offline Novice
    Windows XP Access 2002
    Join Date
    Aug 2011
    Posts
    2

    Overflow from Criteria

    Hey all,



    So I'm using the following query:

    Avg_Prem_Group_Ind: IIf([earn_prem_ind]/[mm_ind]<208.33,"<$208.33","$208.33+")

    I would like to pull only rows that contain <$208.33, so I use the following criteria:

    ="<$208.33"

    When I run the query, all I get is the overflow message. I am new to access, so any help would be greatly appreciated.

  2. #2
    ketbdnetbp is offline Competent Performer
    Windows 7 32bit Access 2003
    Join Date
    Mar 2011
    Location
    Midwest
    Posts
    254

    thesmug1 -

    If I understand your post correctly, then -

    I would change this:

    Avg_Prem_Group_Ind: IIf([earn_prem_ind]/[mm_ind]<208.33,"<$208.33","$208.33+")

    to:

    Avg_Prem_Group_Ind: [earn_prem_ind]/[mm_ind]

    and the criteria to:
    <=208.33

    Hope this helps,

    Jim

  3. #3
    thesmug1 is offline Novice
    Windows XP Access 2002
    Join Date
    Aug 2011
    Posts
    2
    Jim,

    I tried that, and I am still getting the overflow. I also double checked that there are no 0s in the [mm_ind] field. Do you know what else could be causing this? Thanks for your help thus far.

  4. #4
    ketbdnetbp is offline Competent Performer
    Windows 7 32bit Access 2003
    Join Date
    Mar 2011
    Location
    Midwest
    Posts
    254

    thesmug1 -

    Don't know off the top of my head. Can you post a copy of the db for analysis? Strip the db of any sensitive data then do a Compact and repair.

    Jim

  5. #5
    rpeare is offline VIP
    Windows XP Access 2003
    Join Date
    Jul 2011
    Posts
    5,442
    I suspect you're probably using a totals query (clicking the Sigma button on the toolbar and getting a totals line) and just not correctly accounting for it. I can not re-create your error to say for sure.

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

Similar Threads

  1. Overflow message.
    By Robeen in forum Reports
    Replies: 7
    Last Post: 06-06-2011, 04:05 PM
  2. Overflow Message...?
    By batowl in forum Reports
    Replies: 3
    Last Post: 01-13-2011, 02:58 PM
  3. Working with PDF via VBA - overflow undetected
    By is49460 in forum Programming
    Replies: 7
    Last Post: 11-22-2010, 06:58 PM
  4. Replies: 2
    Last Post: 12-03-2009, 05:06 PM
  5. Run time error '6': Overflow
    By wasim_sono in forum Access
    Replies: 0
    Last Post: 06-22-2007, 06:44 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