binding subreports to a main report programatically

From: Fons Ponsioen (anonymous_at_discussions.microsoft.com)
Date: 07/22/04


Date: Thu, 22 Jul 2004 07:13:39 -0700

I would use a query instead where I would relate the
Region table to the transfer table with both the regionto
and regionfrom where I would select all from the region
table and only those matching from the transfer table
Than I would filter for not null in the regionto OR the
region from. This should give you the necessary source
data. Now you can create the subreports from this query.
Hope this gets you going.
Fons
>-----Original Message-----
>hi. i have subreport that has these fields:
>account
>regionto
>regionfrom
>date
>it's basically a report that shows accounts transferring
>from one region of the country to another. sometimes,
>however, the accounts transfers within the same region.
>i'd like to include this transfer data on a main report
we
>have that is grouped by region.
>
>i was hoping to bind the subreport above but when i try
to
>bind the region field on my main report with regionto, i
>only see the transfers INTO the region on the main
report.
>when i bind to transfer from, i only see the transfers
OUT
>OF the region on the main report. when i bind to both, i
>only see the transfers WITHIN the region on the main
>report.
>
>is there a way to say something to the effect of bind
>region with regionto OR region with regionfrom?
>.
>



Relevant Pages

  • Re: Passing date range Parameter to subreport
    ... The query has a SQL property of: ... Then open the main report with the subreport. ... MS Access MVP ...
    (microsoft.public.access.reports)
  • Re: Passing date range Parameter to subreport
    ... could you give me an idea as to how to pass a date range to the query ... This would rarely be used in a report. ... MS Access MVP ... would you expect to do with a recordset and a subreport? ...
    (microsoft.public.access.reports)
  • Re: Passing date range Parameter to subreport
    ... query pulls the raw material lots used to produce the product lot (again ... I want prepare a report with the ... MS Access MVP ... Then open the main report with the subreport. ...
    (microsoft.public.access.reports)
  • Re: how to select parameter in subreport when main report is opene
    ... Set the LinkMasterFields property of the subreport control to ... Use this query as the subreport's RecordSource property: ... number and the main is showing the data for the same drawing the revision ... Is the main report showing the data for a single drawing number? ...
    (microsoft.public.access.reports)
  • Re: Passing date range Parameter to subreport
    ... desired query string. ... properties of the report or what. ... startdate and enddate" to a subreport. ... <MS ACCESS MVP> ...
    (microsoft.public.access.reports)