Here is my small sql statement -update tblinvoicehdrset tblInvoiceHdr.InHomeAging= (select min(inhomedate) from tblinserts where tblInserts.InvoiceNo = tblInvoiceHdr.InvoiceNo)from tblinvoicehdr;
UPDATE tblinvoicehdr INNER JOIN tblInserts ON tblinvoicehdr.InvoiceNo = tblInserts.InvoiceNo SET tblinvoicehdr.InHomeAging = Min([tblinserts].[inhomedate]);
I have tried rewording it several times and using joins but keep running into problems either syntax errors or errors regarding that tblinvoicehdr.inhomeaging is not a part of aggregate function.All I am trying to do is go through where invoiceno are equal to take the min(tblinserts.inhomedate) and set it in to the tblinvoicehdr.inhomeaging field.