Results 1 to 9 of 9
  1. #1
    Join Date
    Jul 2014
    Posts
    4

    How to delete the comma when multiple values are allowed


    I have several fields that allow multiple values, and the output adds a comma between the records. The fields need to be separated by a period or a blank space (not a comma). How can I change this?

    Windows 8
    Access 2013

  2. #2
    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
    Are you familiar with Normalization?

  3. #3
    Join Date
    Jul 2014
    Posts
    4
    That video isn't about Normalization, however, i did watch one about normalization ( https://www.youtube.com/watch?v=0VCfiU07DWo ).

    My tables are set up and linked like he describes, but I chose to allow multiple values (I have Access 2013 - the multiple values option was not an option in the version of Access I used previously - in case that matters?).

    When I choose a field [itemnum], for example, a dropdown box will appear with available item numbers. Check the boxes of corresponding item numbers, and the data appears as follows:
    123456, 456, 78911

    I need the data to appear as:
    123456 456 78911


    I hope that makes sense. I'm kind of new to Access (if you can't tell).
    Thanks!

  4. #4
    ItsMe's Avatar
    ItsMe is offline Sometimes Helpful
    Windows 7 64bit Access 2010 32bit
    Join Date
    Aug 2013
    Posts
    7,862
    Perhaps you could implement the Replace() function. However, I do not believe the Replace function will work on an entire DB. It is a function to be used with strings.

  5. #5
    June7's Avatar
    June7 is offline VIP
    Windows 7 64bit Access 2010 32bit
    Join Date
    May 2011
    Location
    The Great Land
    Posts
    53,770
    If you are using a multi-value field, the comma separator is intrinsic to that functionality and AFAIK cannot be altered. You should fully understand multi-value fields and their limitations before committing to their use. I NEVER use them.

    http://office.microsoft.com/en-us/ac...001233722.aspx
    http://office.microsoft.com/en-us/ac...010149297.aspx
    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.

  6. #6
    Join Date
    Jul 2014
    Posts
    4
    Quote Originally Posted by June7 View Post
    If you are using a multi-value field, the comma separator is intrinsic to that functionality and AFAIK cannot be altered. You should fully understand multi-value fields and their limitations before committing to their use. I NEVER use them.

    http://office.microsoft.com/en-us/ac...001233722.aspx
    http://office.microsoft.com/en-us/ac...010149297.aspx
    I found another thread suggesting not to use "MVF" and wondered if that was the same as Multi-valued fields, and apparently it is. I'll redesign the database - i wasn't super happy with it anyway. Thank you for your reply!

  7. #7
    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
    @AccessDanger,

    Sorry about the Normalization link--I copied the link from one of ItsMe's posts. She talked abut everything but Normalization per se.
    Glad you found one to your liking.

    I've only met one person who uses MVF and thinks they're great. Most people/developers will tell you to use traditional table. M$oft thinks this is a feature, but it's more gimmick in my view, and not supported in other products.

    Good luck with your project.

    PS:

    Here's the link I usually suggest for database design and Normalization. The video quality is a little lacking but the content isnot bad and all videos deal with the same topic---Customer Order OrderDetail Item. Other links are available on the page.

  8. #8
    Join Date
    Jul 2014
    Posts
    4
    Quote Originally Posted by orange View Post
    @AccessDanger,

    Sorry about the Normalization link--I copied the link from one of ItsMe's posts. She talked abut everything but Normalization per se.
    Glad you found one to your liking.

    I've only met one person who uses MVF and thinks they're great. Most people/developers will tell you to use traditional table. M$oft thinks this is a feature, but it's more gimmick in my view, and not supported in other products.

    Good luck with your project.

    PS:

    Here's the link I usually suggest for database design and Normalization. The video quality is a little lacking but the content isnot bad and all videos deal with the same topic---Customer Order OrderDetail Item. Other links are available on the page.
    Thank you very much!
    I've designed a few databases, and almost always have to restart due to design. Hopefully these links will help me organize the db prior to creation.

  9. #9
    June7's Avatar
    June7 is offline VIP
    Windows 7 64bit Access 2010 32bit
    Join Date
    May 2011
    Location
    The Great Land
    Posts
    53,770
    If you store the data in conventional table as individual records but in a report want to show the data from multiple records in a single string, review: http://allenbrowne.com/func-concat.html
    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. Replies: 5
    Last Post: 06-11-2014, 05:10 PM
  2. Replies: 2
    Last Post: 05-16-2012, 04:45 PM
  3. Replies: 3
    Last Post: 03-20-2011, 04:45 PM
  4. Not Allowed To Run Delete Query
    By batowl in forum Queries
    Replies: 5
    Last Post: 01-27-2011, 03:43 PM
  5. Replies: 1
    Last Post: 08-21-2009, 06:52 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