tblA has commodities such as ME Milled Rice, and tblB has just ME and second field with load factor
=Mid(tblA.Commodity, 1, InStr(1, " ", tblA.Commodity) - 1) = tblB.Commodity
[TABLE="width: 260"]
<tbody>[TR]
[TD]tblA[/TD]
[TD][/TD]
[TD][/TD]
[/TR]
[TR]
[TD]field1[/TD]
[TD]field2[/TD]
[TD]Commodity[/TD]
[/TR]
[TR]
[TD]abc[/TD]
[TD]123[/TD]
[TD]MR - Milled Rice[/TD]
[/TR]
[TR]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[/TR]
[TR]
[TD]tblB[/TD]
[TD][/TD]
[TD][/TD]
[/TR]
[TR]
[TD]Commodity[/TD]
[TD]LF[/TD]
[TD][/TD]
[/TR]
[TR]
[TD]MR[/TD]
[TD]22[/TD]
[TD][/TD]
[/TR]
</tbody>[/TABLE]
=Mid(tblA.Commodity, 1, InStr(1, " ", tblA.Commodity) - 1) = tblB.Commodity
[TABLE="width: 260"]
<tbody>[TR]
[TD]tblA[/TD]
[TD][/TD]
[TD][/TD]
[/TR]
[TR]
[TD]field1[/TD]
[TD]field2[/TD]
[TD]Commodity[/TD]
[/TR]
[TR]
[TD]abc[/TD]
[TD]123[/TD]
[TD]MR - Milled Rice[/TD]
[/TR]
[TR]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[/TR]
[TR]
[TD]tblB[/TD]
[TD][/TD]
[TD][/TD]
[/TR]
[TR]
[TD]Commodity[/TD]
[TD]LF[/TD]
[TD][/TD]
[/TR]
[TR]
[TD]MR[/TD]
[TD]22[/TD]
[TD][/TD]
[/TR]
</tbody>[/TABLE]
Last edited: