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 strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Need help displaying a record in a form...

Status
Not open for further replies.

KENTOY

MIS
Jan 31, 2003
9
PH
These are the table i have:

Customer - fields (Id, CustName,... RepName)
SaleRep - field (Id, RepName)
Orders - field (Id, CustName, OrderNo, OrderDate)

I have a Orders Form (control source Orders table) containing a combo box for customer name, when the user selects a particular customer, i want a text box to automatically display the linked Sales Representative (found in Customer table)...

Anybody can help me...

Thanks
kent0y@yahoo.com
 
Hi,

A simple Dlookup statement should do the trick:

Me!SalesRep = DLookup("[RepName]", "Customer", "[ID] = [ComboBox]")

HTH,

jbehrne If at first you don't succeed, call in an airstrike. - Murphy's Laws of Combat Operations
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top