Click here to Skip to main content
15,889,820 members
Please Sign up or sign in to vote.
3.00/5 (2 votes)
I have a table pr-generator which has a subform of the same name. These both access data frm tables indents and indent details respectively.

There is a textbox item_code in the sub form.

Now I want to add item_description next to item_code. Also I have a separate table for storing both item_code and item_description. So if in pr-generator subform the item_code is entered I want its relevant item_description to appear in the textbox adjacent.

Help is appreciated.

Thanks in advance
Posted
Updated 24-Mar-11 22:06pm
v3

1 solution

You need to write a query against your item_code/item_description table to retrieve the description for any item_code that is passed to it. Queries like this are called Parameterized Queries

You can read about them:
here[^]
and
here[^]
and in lots of other places, if you can come up with a suitable search phrase.
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900