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!

Data Retrieval From A Linked Table 1

Status
Not open for further replies.

missymarie1014

Technical User
Mar 15, 2007
50
US
I have a form where the record source is ReceiptTable. ReceiptTable is linked to ItemTable on the item number field. I need to be able to retrieve a value from an ItemTable field based on the item number value in the form and then run some commands based on the condition of that value. How do I go about writing code to retrieve the value in a field (Quantity On Hand) in the ItemTable based on the value in the item number control in the form which is based on the ReceiptTable and is linked to the ItemTable on the item number field? Hope this makes sense. Thanks for any help!
 
Thanks PHV. I had come to the same conclusion that I should create a query and combine the tables which would give me direct access to the fields. I also forgot that this is a subform and the parent form is based on the ItemTable so I was able to retrieve the data based on the parent form record. Thanks for responding!
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top