473,385 Members | 1,645 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.

Creating a Report from Subform

Hi, hopefully people can help:

I am creating a rather simple database for a kids holiday camp. I have two main tables: tblLData (Leaders info) and tblKData (kids info).

What I have done is using a Query, combined two fields of the each table into one (Year Group & Group into GroupName).

Using these fields, I have made a form for the Leaders so that when they input the Year Group they are in charge with and the specific group, a subform would show the kids they have in their group.

Everything up to now is peachy.

Here is the problem:

I want to try and print the records from the subform into a report. I have created a Report which have textbox controls that have codes like this:

Expand|Select|Wrap|Line Numbers
  1. =[Forms]![Leaders Database]![LDatabase Qry subform].[Form]![Surname]
Obviously this one is to list the records first name.

The problem is that, when I click the command button to open the Report, the Report shows up and only displays the kid that is selected. This record is repeated until the page is filled.

If I select more than one record, it shows the first one and repeats that for the entire page.

How can I get the Report to show all the records in the subform and not repeat them?
Oct 7 '06 #1
7 6718
PEB
1,418 Expert 1GB
Hi,
So instaed this use

In () And btwn the brackets write a subquery that retrieves all Names in the sub form

:)
Oct 8 '06 #2
Hi,
So instaed this use

In () And btwn the brackets write a subquery that retrieves all Names in the sub form

:)
As I'm very very new to SQL and databasing... I'm not exactly sure what I need to do to do this.
Oct 22 '06 #3
MMcCarthy
14,534 Expert Mod 8TB

Here is the problem:

I want to try and print the records from the subform into a report. I have created a Report which have textbox controls that have codes like this:

Expand|Select|Wrap|Line Numbers
  1. =[Forms]![Leaders Database]![LDatabase Qry subform].[Form]![Surname]
Your problem is that this code will only reference the current selected record on the subform.

Instead design a subReport based on the record source of the subForm. You can then use that subreport on your report the same as you use the subform on your subform.
Oct 23 '06 #4
As I said, I'm pretty new to this. I have absolutely no idea how to do this and only a general idea of what you are talking about.
Oct 26 '06 #5
MMcCarthy
14,534 Expert Mod 8TB
As I said, I'm pretty new to this. I have absolutely no idea how to do this and only a general idea of what you are talking about.
Use the query or table behind the subform to create a new report. Then drag a sub report control from the toolbox on to the main report and follow the wizard.
Oct 27 '06 #6
It doesn't seem to filter.

There's two controls that filter the subform. At the moment, it filters it well.

When I followed the instructions, the subreport just showed all the data rather than the filtered ones.

BTW: I made a subform exactly the same way on another form, but for the second one I needed to refresh the page before it showed...any advise?
Oct 28 '06 #7
PEB
1,418 Expert 1GB
Can you enter in the query design of your query for your subform and choose

SQL view

The the text that appears there to copy it and paste it here in the forum

So we can understand better what happens in your subform and why it isn't able to appear in report

:)
Oct 28 '06 #8

Sign in to post your reply or Sign up for a free account.

Similar topics

1
by: Randy Harris | last post by:
I put the corporate logo on the top of quite a few different reports. It's not huge, but it adds up and grows that application a bit, even before distribution. Anyone know of a way to save the...
5
by: ChadDiesel | last post by:
My basic question is why does my print report button on my subform print a blank report when my cursor is on a blank entry line? Here is a more detailed explanation of my problem. I have a...
6
by: F-13 | last post by:
I'm working on a BOM in Access 200 from an example downloaded from from the web. The sample database contains three tables, Assemblies (the list of items needed to assemble any assembly),...
8
by: Swans, What Swans? | last post by:
In one of my tables, in addition to a text field that is a Description field, there are two fields for color formatting the data in reports. They are Longs and hold the foreground and background...
3
by: cassey14 | last post by:
Hi I hope someone help me on this.. I need to attach any files in my form like word,excel etc and save it on database..and also I need to open it at the same time..please help me... and also im...
1
by: Diggar | last post by:
I have a data base with about 4 different tables. 1. Cust info 2. Supplier info 3. Order History 4. Order details. Order history and details are on one form with details being the subform....
4
by: Henrootje | last post by:
I have a REPORT with in it a subFORM Now I have this label (lblMonth) that I want to change. How should I do this? What would be the proper event to do this? The lblMonth should contain the...
12
by: Studiotyphoon | last post by:
Hi, I have report which I need to print 3 times, but would like to have the following headings Customer Copy - Print 1 Accounts Copy - Print 2 File Copy -Print 3 I created a macro to...
1
by: Crombam | last post by:
Hi to all, After searching the net for a couple of hours I just have to ask the question. How can I close a report with a subform (Pivot Chart) when this Pivot Chart is having no data? ...
1
by: CloudSolutions | last post by:
Introduction: For many beginners and individual users, requiring a credit card and email registration may pose a barrier when starting to use cloud servers. However, some cloud server providers now...
0
by: Faith0G | last post by:
I am starting a new it consulting business and it's been a while since I setup a new website. Is wordpress still the best web based software for hosting a 5 page website? The webpages will be...
0
by: ryjfgjl | last post by:
In our work, we often need to import Excel data into databases (such as MySQL, SQL Server, Oracle) for data analysis and processing. Usually, we use database tools like Navicat or the Excel import...
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: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
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?

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.