Results 1 to 5 of 5
  1. #1
    cself is offline Novice
    Windows 7 64bit Access 2016
    Join Date
    Sep 2017
    Location
    Lousiana
    Posts
    5

    Exclude characters

    Hello, this is my first time to post.



    In a field that contains numbers and special characters (eg. 77# or 3817#), how do drop the # using query criteria?

    Thank you very much.

    cself

  2. #2
    orange's Avatar
    orange is offline Moderator
    Windows 10 Access 2010 32bit
    Join Date
    Sep 2009
    Location
    Ottawa, Ontario, Canada; West Palm Beach FL
    Posts
    16,726

  3. #3
    Join Date
    Apr 2010
    Location
    Steamboat Springs
    Posts
    2,529
    Here's a tutorial on how to manipulate data in a query.

    http://www.datapigtechnologies.com/f...anipulate.html

  4. #4
    ssanfu is offline Master of Nothing
    Windows 7 32bit Access 2010 32bit
    Join Date
    Sep 2010
    Location
    Anchorage, Alaska, USA
    Posts
    9,664
    If the special characters will ALWAYS be at the end, you might try the VAL() function.

    ?val(77#)
    77
    ?val(3817#)
    3817

    If MyField = "78#"
    Val(MyField) =78

    -See HELP-

  5. #5
    cself is offline Novice
    Windows 7 64bit Access 2016
    Join Date
    Sep 2017
    Location
    Lousiana
    Posts
    5
    Quote Originally Posted by ssanfu View Post
    If the special characters will ALWAYS be at the end, you might try the VAL() function.

    ?val(77#)
    77
    ?val(3817#)
    3817

    If MyField = "78#"
    Val(MyField) =78

    -See HELP-

    Thank you all very much!
    cself

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

Similar Threads

  1. Exclude When Net = $0?
    By aellistechsupport in forum SQL Server
    Replies: 1
    Last Post: 08-29-2016, 11:21 AM
  2. Replies: 5
    Last Post: 05-02-2016, 12:41 PM
  3. Exclude when the current month is the month to exclude?
    By aellistechsupport in forum Queries
    Replies: 15
    Last Post: 05-16-2015, 09:49 PM
  4. Exclude any that match
    By WithoutPause in forum Queries
    Replies: 1
    Last Post: 09-23-2014, 09:53 PM
  5. Replies: 9
    Last Post: 02-11-2013, 03:09 PM

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