I have a MS sample database with a form named Task List that tracks daily task summary in table view. The first field reads either open if there is data for that record or new if data is null. When u click open, it opens the Task Detail form. Ive added a form to track Projects to this database and modified the Task List form to have a field "Task Type" to distinguish between type of work. I want modify the click open command to use an iif statement that opens either Project Details or Task details (Depending on the input) but it uses macros that i don't understand. I keep trying to code it in vba but i cant get it to work right. It seems simple but i cant get it.
I want the click on open to work like:
iif([task type]= "Project", DoCmd.openform ("Project Details"), DoCmd.openform ("Task Details")).
This generates a Complie Error: Expected: =
Can anybody help? Much Appreciated.
I want the click on open to work like:
iif([task type]= "Project", DoCmd.openform ("Project Details"), DoCmd.openform ("Task Details")).
This generates a Complie Error: Expected: =
Can anybody help? Much Appreciated.