Solved

Access 2013 qry from a SharePoint 2013 list

Posted on 2014-07-31
4
50 Views
Last Modified: 2016-05-24
I have a list in SharePoint 2013 that has a choice field that allows multiple selections. The users click checkboxes to make their selections. Some check one box, others up to ten checkboxes. In the column in the SharePoint list called "Type", the selections are divided by a comma if there is more than one selection. As an example: Choice1, Choice2, Choice3.

I can't create a View of the SharePoint list where it is grouped by Type which is a choice field. I need to create a query in Access that can show each of the Types a company is and then group the data by type. So a company may show up in several Type groups.
0
Comment
Question by:JT8337
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
4 Comments
 
LVL 85

Accepted Solution

by:
Scott McDaniel (Microsoft Access MVP - EE MVE ) earned 500 total points
ID: 40233819
Given the denormalized nature of your data (i.e. storing multiple data items in a single column), you'll have to jump through some serious hoops to do stuff like this. You'd be much, much better off storing your data in a normalized fashion (and NOT on Sharepoint, which is a content management system).

That said, you can often use the IN keyword to determine if a value exists in a string value. For example:

SELECT * FROM SomeTable WHERE YourField IN ('a', 'b', 'c')

If you have 10 choices, then you could build up a UNION query:

SELECT SomeTable.*, 'Type A' AS CompanyType FROM SomeTable WHERE YOurField LIKE '*a*'
UNION
SELECT SomeTable.*, 'Type B' AS CompanyType FROM SomeTable WHERE YourField LIKE '*b*'
etc etc

You'd then have a listing that would show the data in SomeTable, with a new "column" for each "type". You could then use that query to create another query, and do your Grouping in the second query.
0
 

Author Comment

by:JT8337
ID: 40235590
Thanks Scott. I will try that tonight.
0

Featured Post

Office 365 Training for Admins - 7 Day Trial

Learn how to provision tenants, synchronize on-premise Active Directory, implement Single Sign-On, customize Office deployment, and protect your organization with eDiscovery and DLP policies.  Only from Platform Scholar.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Traditionally, the method to display pictures in Access forms and reports is to first download them from URLs to a folder, record the path in a table and then let the form or report pull the pictures from that folder. But why not let Windows retr…
When asking a question in a forum or creating documentation, screenshots are vital tools that can convey a lot more information and save you and your reader a lot of time
The viewer will learn how to  create a slide that will launch other presentations in Microsoft PowerPoint. In the finished slide, each item launches a new PowerPoint presentation and when each is finished it automatically comes back to this slide: …
XMind Plus helps organize all details/aspects of any project from large to small in an orderly and concise manner. If you are working on a complex project, use this micro tutorial to show you how to make a basic flow chart. The software is free when…

617 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question