Page 3 of 3 FirstFirst 123
Results 31 to 39 of 39
  1. #31
    bigroo's Avatar
    bigroo is offline Competent Performer
    Windows XP Access 2007
    Join Date
    Jan 2012
    Location
    Austin, Texas
    Posts
    101
    Hey Orange, this works Fantastic and just as I wanted!!


    I also returned 7383 records updated as well. I now going to try updating my real database with 138,000 rows and see if I run into any issues, of course make a backup copy first.

    Thanks

  2. #32
    orange's Avatar
    orange is offline Moderator
    Windows XP Access 2003
    Join Date
    Sep 2009
    Location
    Ottawa, Ontario, Canada; West Palm Beach FL
    Posts
    16,870
    Sounds good. Always do a backup when you are running Delete queries or Update queries.

  3. #33
    bigroo's Avatar
    bigroo is offline Competent Performer
    Windows XP Access 2007
    Join Date
    Jan 2012
    Location
    Austin, Texas
    Posts
    101
    Well, results are 76,432 records updated, so I am happy, sure beats doing these by hand.
    I thank you for your patiance Orange and Rural Guy, you both stepped up and offered assistance and solutions.
    Now, as a final step to this field cleanup, is there anyway to delete just the date from the end of the details field now, it is not required anymore?

  4. #34
    orange's Avatar
    orange is offline Moderator
    Windows XP Access 2003
    Join Date
    Sep 2009
    Location
    Ottawa, Ontario, Canada; West Palm Beach FL
    Posts
    16,870
    The Update would be
    Code:
    UPDATE tblFacHistory 
    SET  tblFacHistory.Details = Mid([Details],1,InStrRev([details],Chr(160))-1)
    WHERE (((tblFacHistory.Details) Like "*" & Chr(160) & "*"));
    Remember your backup

  5. #35
    bigroo's Avatar
    bigroo is offline Competent Performer
    Windows XP Access 2007
    Join Date
    Jan 2012
    Location
    Austin, Texas
    Posts
    101
    Thanks Orange, this is excellent.
    I really appreciate your assistance on this cleanup effort.
    I will change this issue to solved.

    Thanks

  6. #36
    RuralGuy's Avatar
    RuralGuy is offline Administrator
    Windows 7 64bit Access 2010 32bit
    Join Date
    Mar 2007
    Location
    8300' in the Colorado Rocky Mountains
    Posts
    12,917
    I might as well post this db as well. It is not sensitive to Chr(160) in case that ever changes. It does not strip that value from the end of the Memo field that that is really trivial.
    Attached Files Attached Files

  7. #37
    bigroo's Avatar
    bigroo is offline Competent Performer
    Windows XP Access 2007
    Join Date
    Jan 2012
    Location
    Austin, Texas
    Posts
    101
    Thanks Rural Guy, I appreciate the posting of the database. Ran your query and I got the required results and then I used the SQL update statement from Orange to remove the date from the end of the detail field, I am happy.

    Thanks

  8. #38
    RuralGuy's Avatar
    RuralGuy is offline Administrator
    Windows 7 64bit Access 2010 32bit
    Join Date
    Mar 2007
    Location
    8300' in the Colorado Rocky Mountains
    Posts
    12,917
    You are very welcome. Have a happy.

  9. #39
    orange's Avatar
    orange is offline Moderator
    Windows XP Access 2003
    Join Date
    Sep 2009
    Location
    Ottawa, Ontario, Canada; West Palm Beach FL
    Posts
    16,870

Page 3 of 3 FirstFirst 123
Please reply to this thread with any new information or opinions.

Similar Threads

  1. how to extract month and year from date column
    By penguinwebsoft in forum Queries
    Replies: 5
    Last Post: 10-11-2012, 11:29 PM
  2. extract something from a field
    By tozey in forum Queries
    Replies: 4
    Last Post: 02-24-2012, 08:54 AM
  3. Query to extract maximum figures for each date
    By vijanand1279 in forum Queries
    Replies: 2
    Last Post: 11-03-2011, 10:41 PM
  4. Extract two last recodes
    By yosik20 in forum Queries
    Replies: 4
    Last Post: 04-12-2011, 01:35 PM
  5. Extract Creation/Last Edit Date
    By jgelpi16 in forum Programming
    Replies: 2
    Last Post: 02-15-2011, 07:12 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