P
pv44
Guest
I have 2 tables. Table1 is for CustomerInfo, table2 contains reference data concerning various models. There is 1 form, CustomerInfo form. There is a field (textbox) on the CustomerInfo form for serial number. There is also a field (textbox) for ModelName.
The serial number (12 digits/letters) contains info as to which model it is (digit/letter 3,4,5).
My reference table (table2) has a column for Model_No (digit/letter 3,4 and5) and a column for Model (what name that digit/letter 3,4 and5 represents).
I already know the various model numbers and what model name that particular model number stands for. When a serial number is entered I want the ModelName field to be filled in from a query.
How do you write a query that would: Parse the serial number, then use that parsed number to find a model number(Model_No column table2) and then a model name(Model column table2), then insert the model name into the CustomerInfo form in the ModelName field. Also would this query go into AfterUpdate event or where?
Thanks in advance, Van
The serial number (12 digits/letters) contains info as to which model it is (digit/letter 3,4,5).
My reference table (table2) has a column for Model_No (digit/letter 3,4 and5) and a column for Model (what name that digit/letter 3,4 and5 represents).
I already know the various model numbers and what model name that particular model number stands for. When a serial number is entered I want the ModelName field to be filled in from a query.
How do you write a query that would: Parse the serial number, then use that parsed number to find a model number(Model_No column table2) and then a model name(Model column table2), then insert the model name into the CustomerInfo form in the ModelName field. Also would this query go into AfterUpdate event or where?
Thanks in advance, Van