Quantcast
Channel: SQL Server Reporting Services, Power View forum
Viewing all articles
Browse latest Browse all 28687

Free Form List

$
0
0

I hope this is the correct place to post this question.  I have what I believe is a simple issue, but it has me baffled.  I am new to report writing for the most part.

SQL Express 2008 R2

Report Builder 3.0

My SQL DB has two tables that I want to pull information from "Company" and "Contacts".  Each company has multiple contacts associated with it. "Company" has a "ListID" field that is unique for each one.  "Contacts" have a "ListID" field that identifies which company they are associated with.

I want to create a custom form/report that list a company and its information, then lists all of the contacts with their information below it.

I have each table as a dataset.  I have created a parameter for the User Input of the ListID.  I am good with getting the correct company, just unable to list all of the contact that are associated with that company.

Example of what I want the report to look like:

Company: ABC Corp     Address: 123 South Street       City, State: Sometown, SS

Owner: John Doe        Phone: 999-999-9999

-------------------------------------------------------------------------------------------------------

Name                      Cell Phone                  Email

Contact 1                123-456-7890            contact1@domain.com

Contact 2                123-987-6543            contact2@domain.com

I have tried different groupings etc. and I can only get the first contact to show.  I can get it to work using a table, but then I am unable to organize the fields the way that I need them.  I am trying now to work with a subreport, but still have not found the correct way to accomplish the desired results.

I am not asking for someone to write this, just point me in the right direction is possible.

Note: I will be posting another question related to another report that has me stumped as well.

Thanks in advance for any suggestions.



Viewing all articles
Browse latest Browse all 28687

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>