Solved

Continuous Form - Showing additional data

Posted on 2014-03-27
2
248 Views
Last Modified: 2014-03-27
Hi,

See attached simple database.

Customers place orders for car parts!

1.  Run frmHeader which has a subform frmDetail.
2. Choose a customer from frmHeader
3. Now choose a part from frmDetail  (Important: this is a continuous form)
4. So far so good!

Requirement: In the frmDetail - note the two yellow text boxes.   How do I populate these yellow boxes with tblParts.Price and tblParts.Colour

(Obviously, the price & colour are for display only and not stored in the tblOrderDetail)
Database4.accdb
0
Comment
Question by:Patrick O'Dea
2 Comments
 
LVL 49

Accepted Solution

by:
Gustav Brock earned 500 total points
ID: 39958229
1. Change the rowsource of Combo0 to:

SELECT tblParts.CarPartID, tblParts.PartDescription, tblParts.PartPrice, tblParts.PartColour FROM tblParts;

2. Change columncount of Combo0 to 4.
3. Add two more column widths - both of 0 (zero) - to ColumnWidths of Combo0.

4. Use as ControlSource for your two yellow textboxes:

    =[Combo0].[column](2)
and
    =[Combo0].[column](3)

/gustav
0
 

Author Closing Comment

by:Patrick O'Dea
ID: 39958238
Thanks Gustav,

Works perfectly!
0

Featured Post

What Should I Do With This Threat Intelligence?

Are you wondering if you actually need threat intelligence? The answer is yes. We explain the basics for creating useful threat intelligence.

Join & Write a Comment

In the previous article, Using a Critera Form to Filter Records (http://www.experts-exchange.com/A_6069.html), the form was basically a data container storing user input, which queries and other database objects could read. The form had to remain op…
I originally created this report in Crystal Reports 2008 where there is an option to underlay sections. I initially came across the problem in Access Reports where I was unable to run my border lines down through the entire page as I was using the P…
Using Microsoft Access, learn some simple rules for how to construct tables in a relational database. Split up all multi-value fields into single values: Split up fields that belong to other things into separate tables: Make sure that all record…
With Microsoft Access, learn how to specify relationships between tables and set various options on the relationship. Add the tables: Create the relationship: Decide if you’re going to set referential integrity: Decide if you want cascade upda…

706 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

16 Experts available now in Live!

Get 1:1 Help Now