I have a table in my report that shows cases, that are grouped by Court and
Case. Each case can have one or more defendants. How do I add the defendant
data to the table?
In other words, how do I add a sub-table in my current table and link by
Court and Case?HI,
The best way to me seems that you need a one-to-many relationship here. I
say one-to-many, as it seems unlikely that a defendant would me involved in
multiple cases. If so then you need to have a many-to-many n:n
Create a defendants table, with a foreign key. THe foreign key would then
contain the case key, thereby giveing one case the ability to have one or
more defendants. All thats left is to do the proper relation.
Robert
"Mike OKC" <MikeOKC@.discussions.microsoft.com> wrote in message
news:3CD766B4-487D-4DAD-8EC3-6120FBEFC8CA@.microsoft.com...
> I have a table in my report that shows cases, that are grouped by Court
and
> Case. Each case can have one or more defendants. How do I add the
defendant
> data to the table?
> In other words, how do I add a sub-table in my current table and link by
> Court and Case?
>|||I already have two tables. Case Table and Defentant Table. Its a one-many
join.
When I said table I mean the report table, the object off the toolbox. I
want the report table to show multiple defendants per case.
"Robert Bravery" wrote:
> HI,
> The best way to me seems that you need a one-to-many relationship here. I
> say one-to-many, as it seems unlikely that a defendant would me involved in
> multiple cases. If so then you need to have a many-to-many n:n
> Create a defendants table, with a foreign key. THe foreign key would then
> contain the case key, thereby giveing one case the ability to have one or
> more defendants. All thats left is to do the proper relation.
> Robert
> "Mike OKC" <MikeOKC@.discussions.microsoft.com> wrote in message
> news:3CD766B4-487D-4DAD-8EC3-6120FBEFC8CA@.microsoft.com...
> > I have a table in my report that shows cases, that are grouped by Court
> and
> > Case. Each case can have one or more defendants. How do I add the
> defendant
> > data to the table?
> >
> > In other words, how do I add a sub-table in my current table and link by
> > Court and Case?
> >
>
>|||Hello Mike,
I understand that you'd like to show cases and their defendants in one
report. If I'm off-base, please let me know.
Generally you shall use a query with inner join in dataset so that you
could list this informaiton in one report.
For example:
cases table: caseid, casename
casedefendants table: caseid, defendant
select cases.caseid, cases.name, casedefendants.defendant from cases inner
join casedefendants on cases.caseid=casedefendants.caseid
The report shall be sth like:
caseid casename defendant
1 case1 def1
1 case1 def2
2 case2 def3
2 case2 def4
If this does not meet your requirement, please feel free to let's know.
Thank you.
Best Regards,
Peter Yang
MCSE2000/2003, MCSA, MCDBA
Microsoft Online Community Support
==================================================Get notification to my posts through email? Please refer to
http://msdn.microsoft.com/subscriptions/managednewsgroups/default.aspx#notif
ications
<http://msdn.microsoft.com/subscriptions/managednewsgroups/default.aspx>.
Note: The MSDN Managed Newsgroup support offering is for non-urgent issues
where an initial response from the community or a Microsoft Support
Engineer within 1 business day is acceptable. Please note that each follow
up response may take approximately 2 business days as the support
professional working with you may need further investigation to reach the
most efficient resolution. The offering is not appropriate for situations
that require urgent, real-time or phone-based interactions or complex
project analysis and dump analysis issues. Issues of this nature are best
handled working with a dedicated Microsoft Support Engineer by contacting
Microsoft Customer Support Services (CSS) at
<http://msdn.microsoft.com/subscriptions/support/default.aspx>.
==================================================This posting is provided "AS IS" with no warranties, and confers no rights.|||I've changed my report to list boxes. This post is no longer required.
Thank you for your reply.
"Peter Yang [MSFT]" wrote:
> Hello Mike,
> I understand that you'd like to show cases and their defendants in one
> report. If I'm off-base, please let me know.
> Generally you shall use a query with inner join in dataset so that you
> could list this informaiton in one report.
> For example:
> cases table: caseid, casename
> casedefendants table: caseid, defendant
> select cases.caseid, cases.name, casedefendants.defendant from cases inner
> join casedefendants on cases.caseid=casedefendants.caseid
> The report shall be sth like:
> caseid casename defendant
> 1 case1 def1
> 1 case1 def2
> 2 case2 def3
> 2 case2 def4
> If this does not meet your requirement, please feel free to let's know.
> Thank you.
> Best Regards,
> Peter Yang
> MCSE2000/2003, MCSA, MCDBA
> Microsoft Online Community Support
> ==================================================> Get notification to my posts through email? Please refer to
> http://msdn.microsoft.com/subscriptions/managednewsgroups/default.aspx#notif
> ications
> <http://msdn.microsoft.com/subscriptions/managednewsgroups/default.aspx>.
> Note: The MSDN Managed Newsgroup support offering is for non-urgent issues
> where an initial response from the community or a Microsoft Support
> Engineer within 1 business day is acceptable. Please note that each follow
> up response may take approximately 2 business days as the support
> professional working with you may need further investigation to reach the
> most efficient resolution. The offering is not appropriate for situations
> that require urgent, real-time or phone-based interactions or complex
> project analysis and dump analysis issues. Issues of this nature are best
> handled working with a dedicated Microsoft Support Engineer by contacting
> Microsoft Customer Support Services (CSS) at
> <http://msdn.microsoft.com/subscriptions/support/default.aspx>.
> ==================================================> This posting is provided "AS IS" with no warranties, and confers no rights.
>
Showing posts with label grouped. Show all posts
Showing posts with label grouped. Show all posts
Friday, February 24, 2012
Sunday, February 19, 2012
Add Blank Page
I have a report that is grouped by employee. The report lists the
training each employee has taken. What I want to do is have a page
with just the employee's name and some lines that can be used for
writing comments to print after the last page of data for the employee
is displayed. So, if page 1 and page 2 have employee training data,
page 3 will just have the employee's name and than a bunch of blank
lines.
Any help is appreciated.
Thanks. MKOn Nov 12, 12:21 pm, Mark <mark...@.gmail.com> wrote:
> I have a report that is grouped by employee. The report lists the
> training each employee has taken. What I want to do is have a page
> with just the employee's name and some lines that can be used for
> writing comments to print after the last page of data for the employee
> is displayed. So, if page 1 and page 2 have employee training data,
> page 3 will just have the employee's name and than a bunch of blank
> lines.
> Any help is appreciated.
> Thanks. MK
One way of doing it is to add a table control at the bottom of the
report and have the employee's name as the detail record. Then right-
click the top-left corner of the table control >> select Properties >>
select the General tab >> below 'Page breaks:' select 'Insert a page
break after this table.' Hope this helps.
Regards,
Enrique Martinez
Sr. Software Consultant|||On Nov 12, 9:01 pm, EMartinez <emartinez...@.gmail.com> wrote:
> On Nov 12, 12:21 pm, Mark <mark...@.gmail.com> wrote:
> > I have a report that is grouped by employee. The report lists the
> > training each employee has taken. What I want to do is have a page
> > with just the employee's name and some lines that can be used for
> > writing comments to print after the last page of data for the employee
> > is displayed. So, if page 1 and page 2 have employee training data,
> > page 3 will just have the employee's name and than a bunch of blank
> > lines.
> > Any help is appreciated.
> > Thanks. MK
> One way of doing it is to add a table control at the bottom of the
> report and have the employee's name as the detail record. Then right-
> click the top-left corner of the table control >> select Properties >>
> select the General tab >> below 'Page breaks:' select 'Insert a page
> break after this table.' Hope this helps.
> Regards,
> Enrique Martinez
> Sr. Software Consultant
Thank you for your reply Enrique
When I add the table to my report, it ends up printing after all of
the employees have printed. What I want to happen is:
Page 1 = employee one detail records
Page 2 = employee one detail records
Page 3 = employee one detail records
Page 4 = notes page for employee one
Page 5 = employee two detail records
Page 6 = employee two detail records
Page 7 = notes page for employee two
The notes page will just have the employees name and than a bunch of
lines for note writing.
Thanks for any help. Mark.|||On Nov 13, 12:30 pm, Mark <mark...@.gmail.com> wrote:
> On Nov 12, 9:01 pm, EMartinez <emartinez...@.gmail.com> wrote:
>
> > On Nov 12, 12:21 pm, Mark <mark...@.gmail.com> wrote:
> > > I have a report that is grouped by employee. The report lists the
> > > training each employee has taken. What I want to do is have a page
> > > with just the employee's name and some lines that can be used for
> > > writing comments to print after the last page of data for the employee
> > > is displayed. So, if page 1 and page 2 have employee training data,
> > > page 3 will just have the employee's name and than a bunch of blank
> > > lines.
> > > Any help is appreciated.
> > > Thanks. MK
> > One way of doing it is to add a table control at the bottom of the
> > report and have the employee's name as the detail record. Then right-
> > click the top-left corner of the table control >> select Properties >>
> > select the General tab >> below 'Page breaks:' select 'Insert a page
> > break after this table.' Hope this helps.
> > Regards,
> > Enrique Martinez
> > Sr. Software Consultant
> Thank you for your reply Enrique
> When I add the table to my report, it ends up printing after all of
> the employees have printed. What I want to happen is:
> Page 1 = employee one detail records
> Page 2 = employee one detail records
> Page 3 = employee one detail records
> Page 4 = notes page for employee one
> Page 5 = employee two detail records
> Page 6 = employee two detail records
> Page 7 = notes page for employee two
> The notes page will just have the employees name and than a bunch of
> lines for note writing.
> Thanks for any help. Mark.
You're welcome. The best way to control this is to pass the dataset
into the report in the format that you want to display it in. I'm not
sure how you would have a page break in this scenario though (aside
from possibly passing in empty records). Otherwise, you can underline
the field by: selecting the table row on the left >> right-click and
select Properties >> in the Properties tab, select BorderStyle >>
select the Drop-down list to the right of Bottom >> select
<Expression...> and enter something like:
=iif(Fields!ExtraColumn.Value = "Notes", "Solid", "None")
Where ExtraColumn is just that, set to either something like:
"Details" or "Notes". So in this expression if the extra field ="Notes", then set the bottom border to solid, else set it to none (or
invisible). Hope this helps.
Regards,
Enrique Martinez
Sr. Software Consultant
training each employee has taken. What I want to do is have a page
with just the employee's name and some lines that can be used for
writing comments to print after the last page of data for the employee
is displayed. So, if page 1 and page 2 have employee training data,
page 3 will just have the employee's name and than a bunch of blank
lines.
Any help is appreciated.
Thanks. MKOn Nov 12, 12:21 pm, Mark <mark...@.gmail.com> wrote:
> I have a report that is grouped by employee. The report lists the
> training each employee has taken. What I want to do is have a page
> with just the employee's name and some lines that can be used for
> writing comments to print after the last page of data for the employee
> is displayed. So, if page 1 and page 2 have employee training data,
> page 3 will just have the employee's name and than a bunch of blank
> lines.
> Any help is appreciated.
> Thanks. MK
One way of doing it is to add a table control at the bottom of the
report and have the employee's name as the detail record. Then right-
click the top-left corner of the table control >> select Properties >>
select the General tab >> below 'Page breaks:' select 'Insert a page
break after this table.' Hope this helps.
Regards,
Enrique Martinez
Sr. Software Consultant|||On Nov 12, 9:01 pm, EMartinez <emartinez...@.gmail.com> wrote:
> On Nov 12, 12:21 pm, Mark <mark...@.gmail.com> wrote:
> > I have a report that is grouped by employee. The report lists the
> > training each employee has taken. What I want to do is have a page
> > with just the employee's name and some lines that can be used for
> > writing comments to print after the last page of data for the employee
> > is displayed. So, if page 1 and page 2 have employee training data,
> > page 3 will just have the employee's name and than a bunch of blank
> > lines.
> > Any help is appreciated.
> > Thanks. MK
> One way of doing it is to add a table control at the bottom of the
> report and have the employee's name as the detail record. Then right-
> click the top-left corner of the table control >> select Properties >>
> select the General tab >> below 'Page breaks:' select 'Insert a page
> break after this table.' Hope this helps.
> Regards,
> Enrique Martinez
> Sr. Software Consultant
Thank you for your reply Enrique
When I add the table to my report, it ends up printing after all of
the employees have printed. What I want to happen is:
Page 1 = employee one detail records
Page 2 = employee one detail records
Page 3 = employee one detail records
Page 4 = notes page for employee one
Page 5 = employee two detail records
Page 6 = employee two detail records
Page 7 = notes page for employee two
The notes page will just have the employees name and than a bunch of
lines for note writing.
Thanks for any help. Mark.|||On Nov 13, 12:30 pm, Mark <mark...@.gmail.com> wrote:
> On Nov 12, 9:01 pm, EMartinez <emartinez...@.gmail.com> wrote:
>
> > On Nov 12, 12:21 pm, Mark <mark...@.gmail.com> wrote:
> > > I have a report that is grouped by employee. The report lists the
> > > training each employee has taken. What I want to do is have a page
> > > with just the employee's name and some lines that can be used for
> > > writing comments to print after the last page of data for the employee
> > > is displayed. So, if page 1 and page 2 have employee training data,
> > > page 3 will just have the employee's name and than a bunch of blank
> > > lines.
> > > Any help is appreciated.
> > > Thanks. MK
> > One way of doing it is to add a table control at the bottom of the
> > report and have the employee's name as the detail record. Then right-
> > click the top-left corner of the table control >> select Properties >>
> > select the General tab >> below 'Page breaks:' select 'Insert a page
> > break after this table.' Hope this helps.
> > Regards,
> > Enrique Martinez
> > Sr. Software Consultant
> Thank you for your reply Enrique
> When I add the table to my report, it ends up printing after all of
> the employees have printed. What I want to happen is:
> Page 1 = employee one detail records
> Page 2 = employee one detail records
> Page 3 = employee one detail records
> Page 4 = notes page for employee one
> Page 5 = employee two detail records
> Page 6 = employee two detail records
> Page 7 = notes page for employee two
> The notes page will just have the employees name and than a bunch of
> lines for note writing.
> Thanks for any help. Mark.
You're welcome. The best way to control this is to pass the dataset
into the report in the format that you want to display it in. I'm not
sure how you would have a page break in this scenario though (aside
from possibly passing in empty records). Otherwise, you can underline
the field by: selecting the table row on the left >> right-click and
select Properties >> in the Properties tab, select BorderStyle >>
select the Drop-down list to the right of Bottom >> select
<Expression...> and enter something like:
=iif(Fields!ExtraColumn.Value = "Notes", "Solid", "None")
Where ExtraColumn is just that, set to either something like:
"Details" or "Notes". So in this expression if the extra field ="Notes", then set the bottom border to solid, else set it to none (or
invisible). Hope this helps.
Regards,
Enrique Martinez
Sr. Software Consultant
Subscribe to:
Comments (Atom)