G
Guest
I am creating a report based on a query created from a table out of MS project.
The report I'm writing needs to simulate outlining of which is foundin MS
Project. My report needs the following format:
The problem I have is that the NAME(called Project Task above) value has to
appear in both the Summary and Task Field on the report, depending on its
corresponding value in the [Summary] field. In other words, if [Summary]=-1,
then it needs to be in the Summary field on the report, and if the [Summary]
value =0, then it needs to be indented beneath the Summary field.
I have created the following code within my query; however, when I run my
query, I get only the records of which have a "-1" for summary task. The
records with "0" for summary task do not show up when I add the "
" for the spaces/indentation.
The records with "0" for the summary task do show up if I leave out the
spaces. Here's my code:
IIf([Summary]=0," ",[Name]) Or IIf([Summary]=-1,[Name])
Can anyone help me to figure out how to do this? Thanks so much in advance.
The report I'm writing needs to simulate outlining of which is foundin MS
Project. My report needs the following format:
The problem I have is that the NAME(called Project Task above) value has to
appear in both the Summary and Task Field on the report, depending on its
corresponding value in the [Summary] field. In other words, if [Summary]=-1,
then it needs to be in the Summary field on the report, and if the [Summary]
value =0, then it needs to be indented beneath the Summary field.
I have created the following code within my query; however, when I run my
query, I get only the records of which have a "-1" for summary task. The
records with "0" for summary task do not show up when I add the "
" for the spaces/indentation.
The records with "0" for the summary task do show up if I leave out the
spaces. Here's my code:
IIf([Summary]=0," ",[Name]) Or IIf([Summary]=-1,[Name])
Can anyone help me to figure out how to do this? Thanks so much in advance.
Multiple queries may be needed, but at this point I don't
see it being required. It's possible that a little code can
be used to hide or show the task name where needed.
If you would provide a little sample of how you want the
report's output to look along with a few comments to explain
the tricky parts, it might help me better understand your
problem.
--
Marsh
MVP [MS Access]
The problem I have is that the TASK_NAME value has to
appear in both the Summary and Task Field on the report,
depending on its corresponding value in the
TASK_IS_SUMMARY field. In other words, if TASK_IS_SUMMARY
=-1, then it needs to be in the Summary field on the
report, and if the TASK_IS_SUMMARY value =0, then it
needs to be indented beneath the Summary field.
I'm thinking that I'm going to have to produce multiple
queries, one to pull out the summary tasks, and another
to pull out the regular tasks, then a thrid to produce a
report.
I realize I didn't do a very good job of explaining the
output I was after. What would someone need to know to
make this clearer?