HI,
I left programming for about 10 years and now i am concentrating on a project for quality control. The main objective is to stored data regarding inspection activity. Currently I have 2 database, Table PRODUCT & Table Inspection Records. The fields are,
Table PRODUCT
RODUCT CODE(primary key-number),PRODUCT NAME(text) & etc.
Table Inspection Records: JOB NO(primary key-autonumber),PRODUCT CODE(number),PRODUCT NAME(text).
Using a form name INSPECTION RECORDS which is bound to the table Inspection Records, I will key in the related information needed. Since some of the information is repeated, i would like to retrieve the PRODUCT NAME from the Table PRODUCT. I like the value to appear to unbound textbox and stored the value to the respective table for PRODUCT NAME after i've enter the PRODUCT CODE. i can't use the combo box because the list for product is quite long.
I've tried the DLookup function in the control source, but the result i'm getting at the textbox is #error. I know there a other way such as using VBA code and macro but i'm not sure at which part should i put the code and i don't really remember to write code.:banghead:
Please could someone help me. i really appreciate it.
annie
I left programming for about 10 years and now i am concentrating on a project for quality control. The main objective is to stored data regarding inspection activity. Currently I have 2 database, Table PRODUCT & Table Inspection Records. The fields are,
Table PRODUCT

Table Inspection Records: JOB NO(primary key-autonumber),PRODUCT CODE(number),PRODUCT NAME(text).
Using a form name INSPECTION RECORDS which is bound to the table Inspection Records, I will key in the related information needed. Since some of the information is repeated, i would like to retrieve the PRODUCT NAME from the Table PRODUCT. I like the value to appear to unbound textbox and stored the value to the respective table for PRODUCT NAME after i've enter the PRODUCT CODE. i can't use the combo box because the list for product is quite long.
I've tried the DLookup function in the control source, but the result i'm getting at the textbox is #error. I know there a other way such as using VBA code and macro but i'm not sure at which part should i put the code and i don't really remember to write code.:banghead:
Please could someone help me. i really appreciate it.
annie