Good day,
I'm hoping may be able to assist me here. I am appending data from one table to another, and I need to split one of the fields into 3 parts.
The first part is the scanned Batch Number the middle part is the Manufacturer and the end part is the split Batch Number as follows:
00000129_HOTPOINT_003
00000130_SONY_001
00000131_FLYMO_002
00000132_BOSCH_001
00000133_TISUNRECOGNISED_002
etc etc
I have used the following to seperate the left and right characters as required
Left([strName],8) which gives me 00000129
Right([strName],3) which gives me 003
which is what I want for those parts, the real tricky part which I can't seem to work out is to get the middle part without the underscores
I need to just get the Manufacturer name i.e. BOSCH, FLYMO, TISUNRECOGNIZED etc
If anyone could help with how I can acheive that in a query I would be most grateful. I would prefer to do it in the query grid rather writing SQL as I am not familiar with SQL code writing.
Thanks in advance
John
I'm hoping may be able to assist me here. I am appending data from one table to another, and I need to split one of the fields into 3 parts.
The first part is the scanned Batch Number the middle part is the Manufacturer and the end part is the split Batch Number as follows:
00000129_HOTPOINT_003
00000130_SONY_001
00000131_FLYMO_002
00000132_BOSCH_001
00000133_TISUNRECOGNISED_002
etc etc
I have used the following to seperate the left and right characters as required
Left([strName],8) which gives me 00000129
Right([strName],3) which gives me 003
which is what I want for those parts, the real tricky part which I can't seem to work out is to get the middle part without the underscores
I need to just get the Manufacturer name i.e. BOSCH, FLYMO, TISUNRECOGNIZED etc
If anyone could help with how I can acheive that in a query I would be most grateful. I would prefer to do it in the query grid rather writing SQL as I am not familiar with SQL code writing.
Thanks in advance
John