The only action you have is opening the form. There is nothing wrong with
the syntax. Check spellings of field names and whether there is something
which prevents the form from opening.
The problem may well be in frmLevev2Goal. Does it open by itself manually?
Apology for the late reply.
Regards/Jacob
| > Indeed so, going down *up to* 6 levels is complicated. In principle,
you
| > eliminate the lower levels upwards, by filtering out completed sub tasks
or
| > by other means, depending how you are flagging completed subtasks.
| >
| > Regards/JK
| >
| >| > | On Sep 17, 9:22 pm,
[email protected] wrote:
| > | > I'm working to develop a planning database for a client, and
| > | > essentially the client has an outline with different tasks and
| > | > subtasks. For instance, you have task 1 and then sub-tasks 1.1, 1.2,
| > | > etc., and to even further degrees, all the way to 1.2.3.4.5.6. In
| > | > order to achieve task 1, you must complete 1.1, 1.2, etc. I'm
| > | > basically at a loss as to how to get these all designed in access,
it
| > | > seems like the task number could be the primary key, but how do I
set
| > | > it up so access knows that 1.2.1 is a subtask of 1.2? Any help is
| > | > greatly appreciated. Thanks.
| > |
| > | OK, I think if I break it down into SubTasks, so I have Task 1, then
| > | SubTask 2 and SubTask3, which would combine to task 1.2.3. I've
| > | assigned each subtask its own ID number, automatically assigned (an
| > | arbitrary number). The question I have now is that there are up to 6
| > | degrees of tasks, and what's the best way to get it so that if the
| > | fields of Task, SubTask1, Subtask2, etc. are all filled out there's a
| > | text box on a form that calculates it to actually read "1.2.3.4.5.6"?
| > | I tried to just use the regular string with a whole slew of
| > | "IIF(IsNull[SubTask2])..." but it got too complicated with up to 6
| > | subtasks. Thanks.
| > |
|
| Thanks. I now have them all on separate tables, and have created a
| form (frmMainGoals) with the top level task based on the tblMainGoals,
| and then I tried to put a button on the form that would lead me to
| that main task's subtasks, so I created another form based on
| tblLevel2Goals and a button on frmMainGoals. The code for the button
| is:
| Private Sub Level2Form_Click()
| On Error GoTo Err_Level2Form_Click
|
| Dim stDocName As String
| Dim stLinkCriteria As String
|
| stDocName = "frmLevel2Goals"
|
| stLinkCriteria = "[MainGoalID]=" & Me![GoalID]
| DoCmd.OpenForm stDocName, , , stLinkCriteria
|
| Exit_Level2Form_Click:
| Exit Sub
|
| Err_Level2Form_Click:
| MsgBox Err.Description
| Resume Exit_Level2Form_Click
|
| End Sub
|
| When I click the button, however, it comes up with an error message
| that the action can't be performed. I tried this with a query instead
| of the table as the source for the frmLevel2Goals, but that came up
| with the same message. Thoughts?
|