
Originally Posted by
RuralGuy
I'm not sure why you want to put the Document SubForm at the top of the TaskForm ... .
Because the document information is the main subject-matter of the database; the task information is secondary. But then I have the navigation problem that I explained in my last post.
However! The moment I woke up this morning (sad) an adequate 'workaround' (eugh) dawned on me. Unless someone comes up with a better suggestion, I'm going to do this:
1. As you suggested, make TaskTable.TaskID an autonumber field and add 'TaskNumber' as an additional field within TaskTable.
2. Prefill the values 10-01 to 10-99, 11-01 to 11-99 and 12-01 to 12-99 under TaskTable.TaskNumber. (I forgot to mention that there won't be more than 99 tasks in any given year.)
3. Delete TaskTable_TaskID from MainForm.
4. Change DocumentTable_TaskID to a combo box with 'SELECT TaskID, TaskNumber FROM TaskTable' as its row source.
5. Add the field 'InUse' to TaskTable and a hidden checkbox to MainForm that sends the value 'TRUE' to TaskTable.InUse whenever DocumentTable_TaskID isn't null.
See the attachment for a demo. Any feedback would be appreciated.