Results 1 to 14 of 14
  1. #1
    martixz is offline Novice
    Windows 7 64bit Access 2010 64bit
    Join Date
    Oct 2013
    Posts
    11

    Multi-value field with Pivot Table View

    Hello guys. I have a little but quite strange problem using MS Access 2010. One of my database field's is using multiply values (you can add one than more values in that field by checkbox). So, for example, one record in that ONE field looks like this: "Gastropoda; Mermithidae; Nematoda; Oligochaeta; Scorpiones". When I'm going to "PrivotTable view" I have only "Ga" for instance instead of full names...



    I don't know if my description of the problem is clear because my English is not very fluent but I really need your help solving it. The essence of the problem is the fact that I'm using MS Publisher related with the database and as I mentioned in the Publisher fields I can see only the beginnings of the full fieldd, "Ga" for example instead of "Gastropoda; Mermithidae;....".

    I would be very thankful if anyone can help me.

    Here are some screens where the problem can be seen.

    Click image for larger version. 

Name:	1.jpg 
Views:	16 
Size:	88.1 KB 
ID:	14197

    Click image for larger version. 

Name:	2.jpg 
Views:	16 
Size:	116.1 KB 
ID:	14198

    Last edited by martixz; 10-29-2013 at 06:48 AM. Reason: Mod edit: change title

  2. #2
    June7's Avatar
    June7 is offline VIP
    Windows 7 64bit Access 2010 32bit
    Join Date
    May 2011
    Location
    The Great Land
    Posts
    52,931
    That is not strange and is to be expected with multi-value field and lookup with an alias.

    Number 1, many developers consider multi-value fields poor database design (I NEVER use). Access is the only relational database that has them.

    Number 2, setting lookups with alias in table is also often viewed as poor design. http://access.mvps.org/access/lookupfields.htm

    However, here is a contrary view http://www.utteraccess.com/forum/Mul...-t1991337.html

    If you must do both then you need better understanding of what's really going on. Sounds like what is saved in the multi-value field is an ID like 'Ga', not the full descriptor 'Gastropoda'. I don't know if PivotTable view can deal with multi-value field. Building query that uses multi-value field involves expanding the multi-value field. Review: 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.

  3. #3
    martixz is offline Novice
    Windows 7 64bit Access 2010 64bit
    Join Date
    Oct 2013
    Posts
    11
    I have made that field much larger and now something have changed... Instead of "Ac" now it is like that in the screen. The problem remains.
    Click image for larger version. 

Name:	3.jpg 
Views:	13 
Size:	55.9 KB 
ID:	14199

  4. #4
    martixz is offline Novice
    Windows 7 64bit Access 2010 64bit
    Join Date
    Oct 2013
    Posts
    11
    If someone can help me, there are files of test database and publisher documment. http://speedy.sh/YvGtb/DB.rar

  5. #5
    June7's Avatar
    June7 is offline VIP
    Windows 7 64bit Access 2010 32bit
    Join Date
    May 2011
    Location
    The Great Land
    Posts
    52,931
    Apparently MS Publisher doesn't like the multi-value field. Multi-value field will cause problem anytime referenced by an app outside Access. They only solution I can see is VBA code to expand the multi-value field and concatenate the discrete values into a single string.
    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
    martixz is offline Novice
    Windows 7 64bit Access 2010 64bit
    Join Date
    Oct 2013
    Posts
    11
    Hmm, maybe I would never use multiply values but its specific situation because information is being inserted using a form. That problematic field contains a list of values (sometimes it is selected one value, sometimes more). I don't know how to realize that situation in MS Access in a different way...

  7. #7
    June7's Avatar
    June7 is offline VIP
    Windows 7 64bit Access 2010 32bit
    Join Date
    May 2011
    Location
    The Great Land
    Posts
    52,931
    I described solution in previous post. Use VBA. 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.

  8. #8
    martixz is offline Novice
    Windows 7 64bit Access 2010 64bit
    Join Date
    Oct 2013
    Posts
    11
    Maybe someone could help realize this chatting on skype? I never used something like that in MS Access before, so its a bit difficult to understand how it should work in my situation.

  9. #9
    June7's Avatar
    June7 is offline VIP
    Windows 7 64bit Access 2010 32bit
    Join Date
    May 2011
    Location
    The Great Land
    Posts
    52,931
    Maybe someone but I don't. You haven't used VBA before? Now is time to learn. I can't download your file right now but I can't open rar files anyway.
    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.

  10. #10
    martixz is offline Novice
    Windows 7 64bit Access 2010 64bit
    Join Date
    Oct 2013
    Posts
    11
    I never used VBA before and I think I would need it only for this situation if it is the only way to fix the problem. If it is easy to fix the problem, won't take too much time for you and someone could help me, my skype id: martixz

  11. #11
    June7's Avatar
    June7 is offline VIP
    Windows 7 64bit Access 2010 32bit
    Join Date
    May 2011
    Location
    The Great Land
    Posts
    52,931
    I don't do skype for forums and I can't work with rar file. Provide zip or uncompressed database.
    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.

  12. #12
    martixz is offline Novice
    Windows 7 64bit Access 2010 64bit
    Join Date
    Oct 2013
    Posts
    11

  13. #13
    martixz is offline Novice
    Windows 7 64bit Access 2010 64bit
    Join Date
    Oct 2013
    Posts
    11
    I have found a simple solution to this problem. I have tried to use MS Office 2013 and everything works correctly! I think, Microsoft have noticed this error of multiply values and fixed it in 2013 version. By the way, June7, thank you for your help and advices.

  14. #14
    June7's Avatar
    June7 is offline VIP
    Windows 7 64bit Access 2010 32bit
    Join Date
    May 2011
    Location
    The Great Land
    Posts
    52,931
    Glad you found solution. I have not worked with 2013 apps yet.
    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. how to solve this error?
    By ariansman in forum Forms
    Replies: 2
    Last Post: 04-30-2013, 06:16 AM
  2. how to solve this double query
    By gunterhoflack in forum Access
    Replies: 11
    Last Post: 01-28-2013, 07:58 AM
  3. Replies: 3
    Last Post: 12-18-2011, 04:17 AM
  4. can you solve my problem please?
    By grad2009 in forum Access
    Replies: 2
    Last Post: 02-16-2010, 05:02 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