Microsoft access Update Datediff

Asked

Viewed 35 times

1

I need to do a simple update where I update the "Days" column with the current date value minus the "Opening Date" column".

"UPDATE tblPendencia SET DiasPendentes = (DATEDIFF(day, DATAABERTURA, DATE())) WHERE PendenciaOrigem = 'PM'"

I am running this query but it is returning me the error "No value Given for one or more required Parameters".

Thank you.

1 answer

2


After some help...

UPDATE tblPendencia SET tblPendencia.Diaspendents = (DATEDIFF(’d', tblPendencia.Aberturadata, Now())) WHERE tblPendencia.Pendenciaorigin = 'PM'"

Browser other questions tagged

You are not signed in. Login or sign up in order to post.