473,385 Members | 1,806 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,385 software developers and data experts.

sub query on reports??

I two tables one of real estate properties and the other is a table of
tenants. The Tenants table has a PropertyIndex field which ties the tenants
to the propertys.

I have a query that lists the properties and its tenants but it cannot be
used for a report because it doesn't know what to do with the additional
fields when there are more than one tenant.

I would like to to list

Property Name
Address
City, State zip

Tenant 1 Name
Tenant 2 Name
....

Should I use a subreport here or well I'm not sure.

Thanks for your help!!

Nov 12 '05 #1
2 2951
Looks to me like the kind of thing that Subreports were intended for. Create
a separate Report for Tenant information and embed it in the Subreport
Control, specifying the unique id for Property and the foreign key from
Tenant to Propert as the LinkMasterFields and LinkChildFields of the
Subreport Control.

If all the information for property and the first tenant would fit on one
line, you could just use "hide duplicates" on the property information, and
would not need a subreport.

Larry Linson
Microsoft Access MVP

"John" <Jo**@john.net> wrote in message
news:jfa%b.58986$4o.76809@attbi_s52...
I two tables one of real estate properties and the other is a table of
tenants. The Tenants table has a PropertyIndex field which ties the tenants to the propertys.

I have a query that lists the properties and its tenants but it cannot be
used for a report because it doesn't know what to do with the additional
fields when there are more than one tenant.

I would like to to list

Property Name
Address
City, State zip

Tenant 1 Name
Tenant 2 Name
...

Should I use a subreport here or well I'm not sure.

Thanks for your help!!

Nov 12 '05 #2
WOW Thanks for your help !!!!

I had tried the subreports wizard earlier but couldn't get it working, in
the help files is says makes sure the wizard button is pressed then press
subreports. I was trying to get the wizard button pressed in the main tool
bar and it would pop back up and not stay selected.

Anyway, it works well now thanks. Is there a way to make my report so only
one property is printed. When linking it say

'show Tenants for each record in PropertysMain using PropertyIndex'

Although PropertysMain is based on a parameter based query (and therefore
asks for the parameter) it ends up showing all the Propertys creating a huge
report when I only wanted to show one at a time.

Thanks again for your help, I'm happy to get this far.

Regards

"Larry Linson" <bo*****@localhost.not> wrote in message
news:Ya***************@nwrddc03.gnilink.net...
Looks to me like the kind of thing that Subreports were intended for. Create a separate Report for Tenant information and embed it in the Subreport
Control, specifying the unique id for Property and the foreign key from
Tenant to Propert as the LinkMasterFields and LinkChildFields of the
Subreport Control.

If all the information for property and the first tenant would fit on one
line, you could just use "hide duplicates" on the property information, and would not need a subreport.

Larry Linson
Microsoft Access MVP

"John" <Jo**@john.net> wrote in message
news:jfa%b.58986$4o.76809@attbi_s52...
I two tables one of real estate properties and the other is a table of
tenants. The Tenants table has a PropertyIndex field which ties the

tenants
to the propertys.

I have a query that lists the properties and its tenants but it cannot be used for a report because it doesn't know what to do with the additional
fields when there are more than one tenant.

I would like to to list

Property Name
Address
City, State zip

Tenant 1 Name
Tenant 2 Name
...

Should I use a subreport here or well I'm not sure.

Thanks for your help!!


Nov 12 '05 #3

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

1
by: Michael DeLawter | last post by:
Using Access 2002. I have a chart in a report that is currently based on a query in which the user enters the start and end date for the chart to display. Both the start and end dates have been...
4
by: Oreo Bomb | last post by:
I have a secured database that contains a Read-Only group. This group has permissions to view reports, but cannot add, edit, or delete any DB objects. One of the reports the group needs access to...
1
by: Nicolae Fieraru | last post by:
Hi All, I want to find if there is a different way than the way I am working now. Lets say I have a table, tblCustomers containing address details. I want a report with all the customers from...
1
by: longtim | last post by:
I have been having endless difficulty creating reports/queries that set any relevent parameters from controls in forms. I am creating an application under access 2003 but will target access...
13
by: Lee | last post by:
Hello All, First of all I would like to say thank you for all of the help I have received here. I have been teaching myself Access for about 4 years now and I've always been able to find a...
6
by: tizmagik | last post by:
I am having a lot of difficulty generating a CrossTab Query based report. I have looked online for several tutorials and whatnot but I have not been able to really find what I'm looking for, nor...
5
by: sulemanzia | last post by:
hi. i am working first time with query and reports. i have created a database. i have reports and query. i have a button in my form by the name of (View reports) if a user clicks on that button it...
5
by: sara | last post by:
I have reports that run from a form where the user can choose a date range, or they run automatically for a week in the "Weekly Reports" option. I created 2 queries and 2 reports - one query...
2
by: matt | last post by:
hello, i have an .RPT file that i am using to load a report via the ASP.NET CrystalReportViewer control. i dont include my .RPTs as embedded resources...instead i load the absolute path of the...
6
by: Phil Stanton | last post by:
I am running a query that calls a function used to format addresses depending on the width of a control on a report that shows that address. The same query is used as the RecordSource of lots of...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 3 Apr 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome former...
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.