For this type of question, it is always a good idea to post CREATE TABLE statements for your tables and INSERT statements with sample data, and the desired result given the sample. That makes it easy to copy and paste into a query window to develop a tested solution.
To me it seems that the best would be:
UPDATE table1
SET table2id = t2.id
FROM table1 t1
JOIN table2 t2 ON t1.date = t2.date
AND t2.series = t2.series
AND t2.invoicenr = t2.invoicenr
AND t2.vatnumber = t2.vatnumber
WHERE t1. table2id IS NULL
UPDATE table1
SET table2id = t2.id
FROM table1 t1
JOIN table2 t2 ON t1.date = t2.date
AND t2.invoicenr = t2.invoicenr
AND t2.vatnumber = t2.vatnumber
WHERE t1. table2id IS NULL
UPDATE table1
SET table2id = t2.id
FROM table1 t1
JOIN table2 t2 ON t1.date = t2.date
AND t2.invoicenr = t2.invoicenr
WHERE t1. table2id IS NULL