paindivine
Registered User.
- Local time
- Yesterday, 17:50
- Joined
- Dec 13, 2006
- Messages
- 23
This is what I have on my form:
StartDate / EndDate / Ignore?
Startdate = Now
EndDate has no default
and Ignore is a Yes/No checkbox
What I want is for the EndDate to be blank... unless you check the ignore box. In which case the EndDate defaults to StartDate+4Hours. I can figure out how to get it to default:
=[Start Time]+TimeSerial(4,0,0)
But how can I get it to only do that when you check the Ignore checkbox?
I tried putting this into the "AfterUpdate" of the checkbox:
=IIf([Ignore]=Yes,[End Time]=[Start Time]+TimeSerial(4,0,0))
But it didn't work.
I don't really know much about If/Then Statements in Access so any help anyone can provide would be appretiated.
StartDate / EndDate / Ignore?
Startdate = Now
EndDate has no default
and Ignore is a Yes/No checkbox
What I want is for the EndDate to be blank... unless you check the ignore box. In which case the EndDate defaults to StartDate+4Hours. I can figure out how to get it to default:
=[Start Time]+TimeSerial(4,0,0)
But how can I get it to only do that when you check the Ignore checkbox?
I tried putting this into the "AfterUpdate" of the checkbox:
=IIf([Ignore]=Yes,[End Time]=[Start Time]+TimeSerial(4,0,0))
But it didn't work.
I don't really know much about If/Then Statements in Access so any help anyone can provide would be appretiated.