yessir
Saved By Grace
- Local time
- Yesterday, 21:01
- Joined
- May 29, 2003
- Messages
- 349
I have a temp table where I import data from an excel file to.
I do some work on the data in the table, but am having trouble with this part.
The field(ClientID) in a table(tblWater_Sample_Temp) contains information like:
HZ540-EN15
HZ540-MTG
I also have a table(tblPrefix_Outlets) which contains all the prefixes such as;
EN
MTG
What I need to do is find all instances of the prefixes(from tblPrefix_Outlets) in the ClientID and take that information and compare it to entries to another table(tblLocation, Outlet) and insert the associated ID into another Field(Outlet_ID, in tblWater_Sample_Temp)
So the Outcome looks Like:
+-------------+-----------+
| ClientID | Outlet_ID |
+-------------+-----------+
| HZ540-EN15 | 3 | (EN15)
| HZ540-MTG | 5 | (MTG)
+-------------+-----------+
I will include the sample to try it on...
Thanks for any help...
~
I do some work on the data in the table, but am having trouble with this part.
The field(ClientID) in a table(tblWater_Sample_Temp) contains information like:
HZ540-EN15
HZ540-MTG
I also have a table(tblPrefix_Outlets) which contains all the prefixes such as;
EN
MTG
What I need to do is find all instances of the prefixes(from tblPrefix_Outlets) in the ClientID and take that information and compare it to entries to another table(tblLocation, Outlet) and insert the associated ID into another Field(Outlet_ID, in tblWater_Sample_Temp)
So the Outcome looks Like:
+-------------+-----------+
| ClientID | Outlet_ID |
+-------------+-----------+
| HZ540-EN15 | 3 | (EN15)
| HZ540-MTG | 5 | (MTG)
+-------------+-----------+
I will include the sample to try it on...
Thanks for any help...
~