Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations IamaSherpa on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

display value from table on form

Status
Not open for further replies.

mkphan

IS-IT--Management
Jan 9, 2001
18
US
I have a table called

ITEMS - which has the following fields:
item_id
description
price

A form is created with a combo box for [item_id]. I would like to display the description in a text box called "box_description" and display price in text box called "box_price".

Thanks ahead of time,

MK

 
Hello MK,

If your form is as simple as you say, this lin in the combo box's after update event should do the trick:

Me.RecordSource = "SELECT * FROM ITEMS WHERE " _
& "(ITEM_ID) = '" & YourComboBoxNameHere & "'"

ljprodev@yahoo.com
Professional Development
MS Access Applications
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top