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

Displaying Information From A Seperate Table

Status
Not open for further replies.

matethreat

Technical User
Jan 5, 2004
128
AU
Hello,

I have a form which I enter information about a job. One piece of information is an Item Number.

After I enter that item number I want the form to look up in another table the description of that item number and display it on the form.

Both tables contain the item number.

For example:

The forms table:
ItemNumber
Quantity
Price

The master table:
ItemNumber
Description

Now after I type the Item Number on the form I want to display the description from my master table, in a text box.

Any Ideas??

 
Take a look at the DLookUp function:
DLookUp("Description", "[master table]", "ItemNumber='" & Me!ItemNumber & "'")
If ItemNumber is defined as numeric, get rid of the single quotes.

Hope This Helps, PH.
Want to get great answers to your Tek-Tips questions? Have a look at FAQ219-2884 or FAQ222-2244
 
matethreat . . . . .

Try this in the [blue]AfterUpdate Event[/blue] of [Item Number]:
Code:
[blue]Me!TextBoxName = DLookup("[Description]", "MasterTableName", "[Item Number] = " & Me![Item Number])[/blue]

Calvin.gif
See Ya! . . . . . .
 
Thank you guys for your responses, they helped me solve my problem.

Aaron
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top