Easiest way to do this kind of thing in a Continuous View or Datasheet View Form (or even in a Single View Form, really) is to use Conditional Formatting. Assuming that the name of the Control that holds the Task Field is, actually, Task,
In Form Design View
- Hold down <Shift> and click on each Control that you want conditionally Enabled/Disabled.
- Click on the 'Conditional' Icon on the Ribbon
- Under 'Condition1' select Expression Is
- In the condition box enter Nz([Task],"")=""
- Now click on the 'Enable/Disable' Icon (the last Icon, to the right of the Back Color Icon)
- Click on OK
You should now be set. It will Enable the Controls as soon as you enter data in the Task Field and leave the Field, and they will be Enabled/Disabled as is appropriate, for each Record.
Linq ;0)>
The problem with making anything foolproof...is that fools are so darn ingenious!
All posts/responses based on Access 2003/2007