As the title says I want to run a select statement to return 1 value for each item searching with. I will provide a simple example for this.
Lets say that my table is the following:
table1
Mdl Code
Model Model Code
M1070 32HT
M1060 32A4
where table1 is the table, Mdl and Code are the columns, and there are two entries.
Now lets say that I have a list that makes it so that I need to convert from model codes to models. This list can have model codes found in table1, it can have entries not found in table1, and it can have entries that repeat in the search. My question is how (in a generalized sense since my data is more complex) can I run the following example of a search:
32HT
32HT
32HM
NULL (blank entry in searching)
I would ideally like it to return the following:
M1070
M1070
"" (a null or blank value as a place holder so the lists stay in line)
"" (a null or blank value again)
The importance of this is that the return values must always return something or the list it is being dumped into can get off.
Thanks ahead of time.
To clear some things up, the list would be a generated list (so not from an existing table). I am also using JET SQL so that limits some of the SQL functions available.