Results 1 to 9 of 9
  1. #1
    SMB is offline Novice
    Windows 7 64bit Access 2010 64bit
    Join Date
    Dec 2014
    Posts
    5

    Formula for showing numbers


    We have clients that I need to show their case numbers. Most of them are numbers from 0-9. Some are alphabet. I would like for the numbers only to show. Is there a formula for that?

  2. #2
    JoeM is offline VIP
    Windows XP Access 2007
    Join Date
    Jun 2012
    Posts
    3,904

  3. #3
    SMB is offline Novice
    Windows 7 64bit Access 2010 64bit
    Join Date
    Dec 2014
    Posts
    5
    Quote Originally Posted by JoeM View Post
    I think i might have put this question out there wrong. I am creating a new query. In the criteria field, i am looking for a command to eliminate the alpha letters.

  4. #4
    JoeM is offline VIP
    Windows XP Access 2007
    Join Date
    Jun 2012
    Posts
    3,904
    What you put in the Criteria field selects which records to return, it doesn't "change" the value of what is shown.
    If you want to "drop" the letters and show just the numbers, you would use a Calculated field in your query.

    Or are you saying that entries are either "all numbers" or "all letters", and you just want to show the ones that are "all numbers"?
    If that is the case, create a calculated field like this:
    Code:
    IsNumeric([MyField])
    and place TRUE in the Criteria of this field. You can even elect not to show this field in your query results.

    If that does not answer your question, some real examples of what you have in this field, and what you would like to see may help clarify your question.

  5. #5
    SMB is offline Novice
    Windows 7 64bit Access 2010 64bit
    Join Date
    Dec 2014
    Posts
    5
    Thanks. Yes either they are all numbers or all letters. Only want the numbers to show. Thanks

  6. #6
    JoeM is offline VIP
    Windows XP Access 2007
    Join Date
    Jun 2012
    Posts
    3,904
    OK. So did the second part of my previous response work for you when you tried it?

  7. #7
    SMB is offline Novice
    Windows 7 64bit Access 2010 64bit
    Join Date
    Dec 2014
    Posts
    5
    No it did not. I get no info. This is all new to me so I apologize if my questions are not right. I put the IsNumeric([with my field name here]) and I don't get any info

  8. #8
    JoeM is offline VIP
    Windows XP Access 2007
    Join Date
    Jun 2012
    Posts
    3,904
    Where did you put it?
    Do you know how to create a Calculated Field in Access? See here: http://www.fontstuff.com/access/acctut02.htm

    You would put that IsNumeric([FieldName]) part on the Field line, and you would put True on the Criteria row of that calculated field.

  9. #9
    SMB is offline Novice
    Windows 7 64bit Access 2010 64bit
    Join Date
    Dec 2014
    Posts
    5
    Ahh. That is what I missed was the Field line. I was putting it in the Criteria. Thank you

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

Similar Threads

  1. Replies: 4
    Last Post: 11-30-2014, 08:03 AM
  2. Replies: 3
    Last Post: 01-31-2014, 09:40 AM
  3. Replies: 4
    Last Post: 11-19-2013, 06:53 PM
  4. Replies: 1
    Last Post: 08-21-2013, 11:11 AM
  5. Replies: 9
    Last Post: 10-21-2011, 08:38 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