E
Ed Ardzinski
I have a scheduler application, and with it a "task board" for my crew.
Recently I added a bunch of "Daily" tasks to our tracking and they clutter up
the task board. So I'd like to allow the users to view 1) all tasks, 2) just
the daily tasks, 3) all but the daily tasks. This is controlled via a field
called "Occurrence"...
I created an option frame on my form, and was able to get my first 2 options
to work, but the 3rd (all but daily) stumps me. Here's the expression I've
been trying to use:
Like IIf([fraType]=2,7,IIf([fraType]=3,([tblTasks].[Occurrence])<>7,"*"))
Originally I had the following:
Like IIf([fraType]=2,7,IIf([fraType]=3,([tblTasks].[Occurrence])=1 Or
[tblTasks].[Occurrence])=2 Or [tblTasks].[Occurrence])=3 Or
[tblTasks].[Occurrence])=4 Or [tblTasks].[Occurrence])=5 Or
[tblTasks].[Occurrence])=6,"*"))
In the above it was the parser that put inthe explicit field reference - I
origianlly only typed in "1 or 2 or..."
I know I can do the following - a drop down list of Occurance types and
restrict the selected type, or try to alter the SQL for the list boxes with
some in-line code. The first option doesn't get me the funtionality I want,
the second seems like I'd be making things too complex. I suppose I could
also limit my optins to "All Tasks" and "Exclude Daily Tasks"...but I'd like
to be able to look at the daily tasks by themselves.
Appreciate any ideas. Thanks!
Recently I added a bunch of "Daily" tasks to our tracking and they clutter up
the task board. So I'd like to allow the users to view 1) all tasks, 2) just
the daily tasks, 3) all but the daily tasks. This is controlled via a field
called "Occurrence"...
I created an option frame on my form, and was able to get my first 2 options
to work, but the 3rd (all but daily) stumps me. Here's the expression I've
been trying to use:
Like IIf([fraType]=2,7,IIf([fraType]=3,([tblTasks].[Occurrence])<>7,"*"))
Originally I had the following:
Like IIf([fraType]=2,7,IIf([fraType]=3,([tblTasks].[Occurrence])=1 Or
[tblTasks].[Occurrence])=2 Or [tblTasks].[Occurrence])=3 Or
[tblTasks].[Occurrence])=4 Or [tblTasks].[Occurrence])=5 Or
[tblTasks].[Occurrence])=6,"*"))
In the above it was the parser that put inthe explicit field reference - I
origianlly only typed in "1 or 2 or..."
I know I can do the following - a drop down list of Occurance types and
restrict the selected type, or try to alter the SQL for the list boxes with
some in-line code. The first option doesn't get me the funtionality I want,
the second seems like I'd be making things too complex. I suppose I could
also limit my optins to "All Tasks" and "Exclude Daily Tasks"...but I'd like
to be able to look at the daily tasks by themselves.
Appreciate any ideas. Thanks!