Help please
I am querying my primary table off the primary key. From that query I get [CustomerPartNumber]. Then [CustomerPartNumber] is linked to another secondary table [PartNumber]. The problem is sometimes [CustomerPartNumber] has extra characters in it that I don't want. Example: Primary table has (001)123456 and the secondary table has 123456, these are the same and I need them to be linked. I want to check if [CustomerPartNumber] start with "(" and if it does I want to skip the first 5 characters and finish the query. How do I do this in the Design view of the Query. I tried the following in the Criteria field on both fields.
iif(left([CustomerPartNumber],1)="(",mid([CustomerPartNumber],6),[CustomerPartNumber])
Help Please