Results 1 to 7 of 7
  1. #1
    pgruenke is offline Novice
    Windows 10 Access 2010 32bit
    Join Date
    Mar 2018
    Posts
    9

    Find and delete asterisk from name field

    My database captures information regarding juveniles. You can have on rare occasions more than one juvenile with the same ID (ID made up of a combination of county, last name, first name and BD). If you do have a juvenile who will have the same ID as another, the user enters an asterisk as the second character of the first name field. Fine for keeping juvenile records straight, not so good when generating a report for court.

    In the report I have a field named "Last_Name" which holds a concatenation of the first, middle and last names. I don't want to get rid of the asterisk in the juvenile info table, but I don't want it to appear in the report. The asterisk would be present in a minimal number of records. What does it take for the asterisk not to appear on the report. Thanks Pat

  2. #2
    CJ_London is offline VIP
    Windows 10 Access 2010 32bit
    Join Date
    Mar 2015
    Posts
    11,845
    in your report recordsource use

    replace(Last_Name,"*","")

  3. #3
    pgruenke is offline Novice
    Windows 10 Access 2010 32bit
    Join Date
    Mar 2018
    Posts
    9
    When you say report recordsource, do you mean in the query that I created for the report? If so, where? Or would it go in the SQL?

  4. #4
    pgruenke is offline Novice
    Windows 10 Access 2010 32bit
    Join Date
    Mar 2018
    Posts
    9
    I have it. Thanks

  5. #5
    pgruenke is offline Novice
    Windows 10 Access 2010 32bit
    Join Date
    Mar 2018
    Posts
    9
    Ajax, it didn't work. I tried it with "*" and Chr(42). The asterisk doesn't disappear. What am I doing wrong?

  6. #6
    Micron is offline Very Inert Person
    Windows 10 Access 2016
    Join Date
    Jun 2014
    Location
    Ontario, Canada
    Posts
    13,372
    Post the sql attempts you made.
    The more we hear silence, the more we begin to think about our value in this universe.
    Paraphrase of Professor Brian Cox.

  7. #7
    pgruenke is offline Novice
    Windows 10 Access 2010 32bit
    Join Date
    Mar 2018
    Posts
    9
    Finally got it correct. Something so obvious after it dawned on me. User error. Thanks

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

Similar Threads

  1. search/find/select record before delete/update
    By wtolentino in forum Forms
    Replies: 3
    Last Post: 07-10-2017, 06:09 PM
  2. Find and delete duplicates
    By Khalil Handal in forum Access
    Replies: 6
    Last Post: 05-08-2017, 09:41 AM
  3. Replies: 2
    Last Post: 07-17-2014, 02:07 AM
  4. Replies: 8
    Last Post: 02-09-2014, 07:25 PM
  5. Replies: 2
    Last Post: 01-24-2012, 02:16 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