Results 1 to 8 of 8
  1. #1
    LilMissAttack is offline Novice
    Windows XP Access 2007
    Join Date
    May 2010
    Posts
    26

    Cannot pull value of 0

    This seems like it would be simple, but I am having problems pulling records with "0" in a certain field. These are not null but have a zero in the table. thanks!

  2. #2
    boblarson is offline --------
    Windows 7 64bit Access 2010 32bit
    Join Date
    Jun 2011
    Posts
    1,272
    What's the datatype of the field in the table?

  3. #3
    LilMissAttack is offline Novice
    Windows XP Access 2007
    Join Date
    May 2010
    Posts
    26
    Hi, it's Number

  4. #4
    boblarson is offline --------
    Windows 7 64bit Access 2010 32bit
    Join Date
    Jun 2011
    Posts
    1,272
    What type of number? If it is single or double, you could be suffering from floating point errors which can have it really be
    0.00000001
    or something like that so it doesn't really equal 0. What is the other type of data being stored? Do you need decimal places?

  5. #5
    rpeare is offline VIP
    Windows XP Access 2003
    Join Date
    Jul 2011
    Posts
    5,442
    What query criteria are you using when you try to pull information?

  6. #6
    LilMissAttack is offline Novice
    Windows XP Access 2007
    Join Date
    May 2010
    Posts
    26
    Yes it is double...I am pulling it from a linked table..it has the decimal places set to Auto. I am trying to pull it simply by 0

  7. #7
    rpeare is offline VIP
    Windows XP Access 2003
    Join Date
    Jul 2011
    Posts
    5,442
    No criteria listed yet. To what decimal place are you interested in? if you don't care about anything that is 0.anything then you could have a field that is int(numberfield) and filter out any 0 items on that field.

    int just takes the integer value of a number and ignores all decimals.

  8. #8
    boblarson is offline --------
    Windows 7 64bit Access 2010 32bit
    Join Date
    Jun 2011
    Posts
    1,272
    Quote Originally Posted by LilMissAttack View Post
    Yes it is double...I am pulling it from a linked table..it has the decimal places set to Auto. I am trying to pull it simply by 0
    That would be your problem. If you don't need the decimal places then change it to LONG instead of Double. Then the criteria of 0 would work. If you can't change it then you would have to do what rpeare said and you will need another field in your query for the criteria. You create it like:


    MyField:int([OriginalFieldNameHere])

    and then you can use 0 in the criteria for that. You don't need to include that field in the displayed columns, just uncheck the display checkbox.

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

Similar Threads

  1. Pull Data from another table
    By bbranco in forum Access
    Replies: 1
    Last Post: 06-19-2013, 06:15 AM
  2. Pull Value from From Using Append Query
    By kedstracker in forum Queries
    Replies: 1
    Last Post: 06-21-2011, 03:12 PM
  3. cannot pull the correct record
    By simba in forum Reports
    Replies: 1
    Last Post: 11-30-2010, 10:45 AM
  4. How to pull lowest value?
    By TommyRex in forum Access
    Replies: 5
    Last Post: 10-25-2010, 02:09 PM
  5. Replies: 1
    Last Post: 08-22-2006, 04:27 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