Solved

Continuous Form - Showing additional data

Posted on 2014-03-27
2
257 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
2 Comments
 
LVL 50

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

Independent Software Vendors: We Want Your Opinion

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Introduction The Visual Basic for Applications (VBA) language is at the heart of every application that you write. It is your key to taking Access beyond the world of wizards into a world where anything is possible. This article introduces you to…
I see at least one EE question a week that pertains to using temporary tables in MS Access.  But surprisingly, I was unable to find a single article devoted solely to this topic. I don’t intend to describe all of the uses of temporary tables in t…
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…
In Microsoft Access, learn the trick to repeating sub-report headings at the top of each page. The problem with sub-reports and headings: Add a dummy group to the sub report using the expression =1: Set the “Repeat Section” property of the dummy…

735 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