Hi Vanita,
My comments are inline>
vanita said:
Hi Julie
I have used the formula given in the FAQ 31. The formula is not
accepted
with last three OK.
The formula does not include the three "ok"s. The formula is:
IIf([Resource Names] = "Fred", Yes, No)
The okays are to first close the Formula dialog box , then close the
Customize Fields dialog box.
Without those OK the formula is accepted with respect to
a particular resource, but it works only for those tasks which
have only this
particular resource assignment and not in combination with other
resources.
For example, if I use this formula IIf( [Resource Names], Yes,
No ) and
apply it for resource 'Masons', 'Yes' would appear only for those
tasks to
which only 'Masons' are assigned, but not for those tasks, to
which 'Masons'
as well as 'Plumbers' might be assigned.
In your view is there any way to work around this problem, apart
from VBA
application.
Instead of the formula listed in FAQ 31, you might try this formula:
IIf(Instr([Resource Names],"Masons")>0,Yes,No)
It uses the Instr function which tests a string ([Resource Names])
for a string "Masons" and returns the position of the "masons"
string in the Resource Names fields. The Instr function returns the
position of the second string in the first string. If the position
is greater than zero, I know "masons" exists in the Resource Names
field. That function is a bit more flexible than the function in
the FAQ.