Solved

Continuous Form - Showing additional data

Posted on 2014-03-27
2
267 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 51

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

VIDEO: THE CONCERTO CLOUD FOR HEALTHCARE

Modern healthcare requires a modern cloud. View this brief video to understand how the Concerto Cloud for Healthcare can help your organization.

Question has a verified solution.

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

As tax season makes its return, so does the increase in cyber crime and tax refund phishing that comes with it
The Windows Phone Theme Colours is a tight, powerful, and well balanced palette. This tiny Access application makes it a snap to select and pick a value. And it doubles as an intro to implementing WithEvents, one of Access' hidden gems.
Basics of query design. Shows you how to construct a simple query by adding tables, perform joins, defining output columns, perform sorting, and apply criteria.
In Microsoft Access, when working with VBA, learn some techniques for writing readable and easily maintained code.

617 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