I have two tables. One table contains partial part numbers, and the other table contains complete part numbers. For instance, the partial might be 'E123' and the complete might be 'E123-A1' and 'E123-A9'.
What I want to do is to see all of the complete part numbers that contain the partial part number. I do this in a query, using LIKE [Partial] & "*".
That works, sort of, but there are several hundred partial records and it is very slow with lots of 'not responding', sometimes for several minutes.
The two tables are not linked, because the partial part number in one table will not link directly with the full part number in the other table.
I looked at the SQL and tried creating a link between the tables using PARTIAL = LEFT(PARTNUMBER, LEN(PARTIAL)). This ran for a while (a third of the Run Query bar) and then hung.
Is there any way that I can link the tables if the fields are not the same length? My thought was that if I can set up that link, then LIKE [PARTIAL] & "*" will work properly.
Robert
What I want to do is to see all of the complete part numbers that contain the partial part number. I do this in a query, using LIKE [Partial] & "*".
That works, sort of, but there are several hundred partial records and it is very slow with lots of 'not responding', sometimes for several minutes.
The two tables are not linked, because the partial part number in one table will not link directly with the full part number in the other table.
I looked at the SQL and tried creating a link between the tables using PARTIAL = LEFT(PARTNUMBER, LEN(PARTIAL)). This ran for a while (a third of the Run Query bar) and then hung.
Is there any way that I can link the tables if the fields are not the same length? My thought was that if I can set up that link, then LIKE [PARTIAL] & "*" will work properly.
Robert