set a payment date of 2nd of month

S

Sarah

I am trying to use an update query to mark all purchase invoices received in
one month to be paid on the 2nd of the following month. I can't work out how
to fix the payment date as the 2nd of that month when the date of the
invoices varies. Can anyone help please?
 
D

Douglas J. Steele

DateSerial(Year(InvoiceDate), Month(InvoiceDate) + 1, 2)

(Don't worry, that'll work fine even for InvoiceDate values in December)
 
M

Marshall Barton

Sarah said:
I am trying to use an update query to mark all purchase invoices received in
one month to be paid on the 2nd of the following month. I can't work out how
to fix the payment date as the 2nd of that month when the date of the
invoices varies.


Use the DateSerial function something like:

DateSerial(Year(invdate), Month(invdate)+1, 2)
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top