473,624 Members | 2,565 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Creating a Report from Subform

4 New Member
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 6756
PEB
1,418 Recognized Expert Top Contributor
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
ppywong
4 New Member
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 Recognized Expert Moderator MVP

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
ppywong
4 New Member
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 Recognized Expert Moderator MVP
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
ppywong
4 New Member
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 Recognized Expert Top Contributor
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
1698
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 single graphic in a table and insert it into the various reports at runtime? Is it possible to link it with a query? TIA Randy
5
2443
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 form that contains shipment destination information and a subform that contains boxes for that shipment. The main form is a table called Ship_Info, and the subform is a table called Label_Info. They both contain and are linked by a field called...
6
7622
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), Components (the list of items recognised by the Assemblies Table)and Output (a table used to display the BOM from a chosen assembly). It works fine but there are no forms. For a user to edit or create a BOM, should there be a form for each assembly of...
8
3361
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 color values that the Description in that record should be displayed in. For example, the following records might exist... Bass - 255 - 16777215 (The word BASS displayed red on white) Carp - 65535 - 0 (The word CAR displayed yellow on black)...
3
1840
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 having a bit problem in creating a report based in the result of the subform..please help me.. thank you in advance.. -cassey
1
5955
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. This allows a 1 to many with the details. This is all working fine. A person can input data into the main part
4
5877
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 name of the month as jan 07 Any ideas?
12
3526
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 print the report three times, but do not know how
1
1761
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? Explenation: I have a report, which displays a Pivot Chart (Subform). When clicking a command button for displaying this report a form pop-up wil appear, where one can select a dynamic date range. In this pop-up form I included a Cancel button. When the...
0
8249
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look ! Part I. Meaning of...
0
8179
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
0
8685
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. Here is my compilation command: g++-12 -std=c++20 -Wnarrowing bit_field.cpp Here is the code in...
0
8633
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth. The Art of Business Website Design Your website is...
1
8348
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
0
7176
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own.... Now, this would greatly impact the work of software developers. The idea...
1
6112
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 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 a new presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms. Adolph will...
1
1797
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
2
1493
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...

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.