battenberg
Burning candles both ends
- Local time
- Today, 01:18
- Joined
- Sep 25, 2006
- Messages
- 118
Hi,
I want to fire an event that will automatically, set a date 45 days into the future based on a recorded [datefield] in my database.
However, I want to know if this date falls on a saturday or sunday and if it does, return a warning.
can anybody point me in the right direction to get started on this code?
the code i have so far is this:
I would like an if statement to give me a second warning if this date falls on a weekend??
any thoughts?
Thanks & Regards
I want to fire an event that will automatically, set a date 45 days into the future based on a recorded [datefield] in my database.
However, I want to know if this date falls on a saturday or sunday and if it does, return a warning.
can anybody point me in the right direction to get started on this code?
the code i have so far is this:
Code:
dDate = [ForcastDeliveryDate]
dLockDate = DateSerial(Year(dDate), Month(dDate), Day(dDate) + 45)
MsgBox "Lock Date: " & Format(dLockDate, "Long Date")
I would like an if statement to give me a second warning if this date falls on a weekend??
any thoughts?
Thanks & Regards