Conditional date add, Please help

  • Thread starter Thread starter Guest
  • Start date Start date
G

Guest

I have a form with a combo box [Quotestatus], and a subform [tblQuoteLog
subform] with [RequestedDate] field. I need help creating a code for the
after updated event of the [Quotestatus] field. When "LDS" is selected in
the [QuoteStatus] field, I want the [tblQuoteLog subform]![RequestedDate]
field to automatically fill in the current date + 5 more days. But if the
date falls on a Saturday or Sunday I need for the RequestedDate field to add
an additional 2 days. One more tricky part is that if the [QuoteStatus] is
updated after 11:45 a.m. the RequestedDate field needs to add one additional
day. Please help!
 
That seems to be enough requirements. What part are you having problems with?
Have you searched for Business Days? Can you create a UDF
(UserDefinedFunction) in a standard module?
I have a form with a combo box [Quotestatus], and a subform [tblQuoteLog
subform] with [RequestedDate] field. I need help creating a code for the
after updated event of the [Quotestatus] field. When "LDS" is selected in
the [QuoteStatus] field, I want the [tblQuoteLog subform]![RequestedDate]
field to automatically fill in the current date + 5 more days. But if the
date falls on a Saturday or Sunday I need for the RequestedDate field to add
an additional 2 days. One more tricky part is that if the [QuoteStatus] is
updated after 11:45 a.m. the RequestedDate field needs to add one additional
day. Please help!
 

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

Back
Top