Results 1 to 3 of 3
  1. #1
    Crawfordrider33 is offline Novice
    Windows 7 64bit Access 2010 64bit
    Join Date
    May 2015
    Posts
    5

    Delete Partial String HELP!!

    I have a column in my databse that has random numbers. There are some numbers in the database that have .0 at the end of them. For example: 44551.0. I want to create an update query that will delete the .0 from the values.

    Thank you!

  2. #2
    JoeM is offline VIP
    Windows XP Access 2007
    Join Date
    Jun 2012
    Posts
    3,904
    So, is it safe to assume that the column is formatted as String, and not any Numeric format (if it was just special numeric, they would all be formatted the same way)?
    Will they always end in ".0", or could it be other things like ".9"?
    And could there be more than one number after the decimal point (i.e ".12")?
    If they are long numbers, do they have any thousands separators (i.e. "123,456,789.0") or any other non-numeric characters in them?

  3. #3
    June7's Avatar
    June7 is online now VIP
    Windows 7 64bit Access 2010 32bit
    Join Date
    May 2011
    Location
    The Great Land
    Posts
    53,770
    This is a text field? The length of the strings is variable? Is this a one-time event?

    Why don't you just do a manual Find/Replace?

    Otherwise try:

    UPDATE tablename SET [fieldname]=Trim(Val([fieldname]))
    How to attach file: http://www.accessforums.net/showthread.php?t=70301 To provide db: copy, remove confidential data, run compact & repair, zip w/Windows Compression.

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

Similar Threads

  1. Use Partial field value as criteria
    By cplmckenzie in forum Reports
    Replies: 6
    Last Post: 02-06-2015, 01:14 AM
  2. Replies: 3
    Last Post: 06-11-2014, 08:06 AM
  3. partial display
    By tawright in forum Access
    Replies: 2
    Last Post: 07-20-2011, 09:38 AM
  4. Partial Limit
    By bglaugh in forum Programming
    Replies: 1
    Last Post: 09-15-2010, 06:49 AM
  5. Replies: 1
    Last Post: 03-22-2010, 03:37 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