473,587 Members | 2,487 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

showing data

Hello together!

How would you manage the following termin:

I got table "A" and table "B"
I have to show most of the fields in "A", an one columm in table "B".

But table "B" can have several entries which belongs to A.

The output should be something like this

A.field1 A.field2 B.sumOfTheField

Steven Miller value1
value2

value1 and value came from two different rows out of tableB

Any idea?

Thanks a lot!

May 16 '06 #1
1 1892
Lookup subforms in help this is what you need :

Subforms: What they are and how they work
A subform is a form within a form. The primary form is called the main
form, and the form within the form is called the subform. A
form/subform combination is often referred to as a hierarchical form, a
master/detail form, or a parent/child form.

Subforms are especially effective when you want to show data from
tables or queries with a one-to-many relationship. For example, you
could create a form with a subform to show data from a Categories table
and a Products table. The data in the Categories table is the "one"
side of the relationship. The data in the Products table is the "many"
side of the relationship - each category can have more than one
product.

The main form and subform in this type of form are linked so that the
subform displays only records that are related to the current record in
the main form. For example, when the main form displays the Beverages
category, the subform displays only the products in the Beverages
category.

When you use a form with a subform to enter new records, Microsoft
Access saves the current record in the main form when you enter the
subform. This ensures that the records in the "many" table will have a
record in the "one" table to relate to. It also automatically saves
each record as you add it to the subform.

A subform can be displayed as a datasheet, as in the preceding
illustration, or it can be displayed as a single or continuous form. A
main form can be displayed only as a single form.

A main form can have any number of subforms if you place each subform
on the main form. You can also nest up to ten levels of subforms. This
means you can have a subform within a main form, and you can have
another subform within that subform, and so on. For example, you could
have a main form that displays customers, a subform that displays
orders, and another subform that displays order details.

May 16 '06 #2

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

Similar topics

1
1262
by: cara_little | last post by:
Hello, I'm trying to show monthly summary info in some type of data control like so: Jan Feb Mar Jun Apples 10 15 20 25 Oranges 5 3 6 10 Bananas 8 7 4 9 so that it shows the number of apples bought in Jan, etc.
6
1280
by: perspolis | last post by:
Hi I have a question about using exceptions or showing error messages .I say this by an example first way: if(n<0 and w<0) MessageBox.Show("please enter positive") else if (n=0 or w>0) MessageBox.show("n is 0"); or second way
1
840
by: Amber | last post by:
The DataGrid allows you to make columns visible or invisible on demand - even edit and other special columns. This article will show you how it is done. Some developers have reported problems controlling the visibility of columns in the DataGrid control. The problem usually comes down to one fact. The DataGrid has a property called...
4
5086
by: Hans Merkl | last post by:
Hi, Is there a way to show the column headers of a GridView control even if there is no data? The only thing I see is the EmptyDataTemplate but I would also like to display the column headers. Thanks Hans
4
1919
by: Wayne | last post by:
I have posted this problem a couple of times over the last few years but have been unable to find a solution that works. Sometimes charts in reports will display showing the design data instead of the actual query data the first time they are opened. If the report is closed and reopened the correct data is shown. This seems to be a nasty...
0
1846
by: Sridhar | last post by:
Hi, I have a Crystal Report which has two sub reports in it. When I try to view this Crystal Report in my local computer, it is showing data for sub reports also. But when I deploy it to the web server and view the Crystal Report I am not able to view the data of sub reports. It is not giving any error. It is not showing the data. I checked...
1
4089
by: Darsin | last post by:
What i am doing is to pull the data from a CMS and import it to Word 2007 Beta and i also have to export the data from Word 2007 Beta back to that CMS. We have with us two Web Services of the CMS. The Web Services are explained as follows: IMPORT WEB SERVICE:
5
5189
by: Wayne | last post by:
Several of my Access 2003 databases are exhibiting the same problem under Windows Vista. Charts in forms are not showing any data. Reports are not affected. Charts in reports display as they should. The chart object in forms appears but contains no data. It appears to be a screen painting problem because if I open a report or another form...
6
2765
by: ajk | last post by:
Hi I was wondering how to show different properties in design and run-mode for a user control? Is it possible to do this when implementing the System.ComponentModel.ICustomTypeDescriptor interface? e.g. when selecting the control from a toolbox with controls other properties show up when the program is in design mode than in run mode.
1
1389
bard777
by: bard777 | last post by:
I have a Continuous Forms form based on a query that is showing a "blank" record with even the AutoKey field as "Autonumber:" It is almost as if the "new record" row at the bottom of a table is showing. ************ **WOOT** ************ I just figured it out, but I am going to post anyway in case somebody else has the problem. I...
0
7920
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...
0
7849
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...
0
8220
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the...
0
6626
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...
1
5718
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...
0
5394
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert...
0
3879
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
2358
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
0
1189
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...

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.