Without seeing some data, it is hard to say what the problem is. I sould start by creating a query using:
Code:
SELECT t.* FROM t INNER JOIN contacts ON t.meter = contacts.meter WHERE contacts.code ='V44'
If that doesn't give the desired results, I would try:
Code:
SELECT DISTINCT t.* FROM t INNER JOIN contacts ON t.meter = contacts.meter WHERE contacts.code ='V44' "
Then try:
Code:
SELECT DISTINCTROW t.* FROM t INNER JOIN contacts ON t.meter = contacts.meter WHERE contacts.code ='V44' "
When the query returns the desired recordset, copy the SQL and paste it into your Insert code.