Update table query in SQL databse

Are you looking for a SQL statement to update the Inv_DT?

If so, it wold be good to look at SQL_Update

Once you have your base statement, you can then add your variables for invoice_key and company_code as this link Using Parameters in Non-Query

Hope that helps