A
Amy Blankenship
I have a data set that should look something like this:
Section 1
Field 1
Field 2
Field etc...
Section 2
Subsection 1
Field 1
Field 2
Subsection 2
Field 1
etc...
Note that the fields are bits of data that need to be filled in, but don't
directly correspond to the form fields. I'm having trouble wrapping my head
around how to get the fields to be directly under the section when there is
no subsection, but under the subsection when such exists.
I have a query that I think is giving me the right data, but I need a few
pointers on how to make the report do what I want.
If it helps, this is the query:
SELECT
IIf(IsNull([AuditToolGroup].[AuditGroupDesc]),[awAuditToolFieldDef].[AuditGroupDesc],[AuditToolGroup].[AuditGroupDesc])
AS ParentDesc,
IIf(IsNull([AuditToolGroup].[AuditGroupDesc]),"",[awAuditToolFieldDef].[AuditGroupDesc])
AS ChildDesc, awAuditToolFieldDef.FieldLabel,
AuditScenarioFieldCorrect.CorrectValueID,
AuditScenarioFieldCorrect.CanBeQuestionable,
AuditScenarioFieldCorrect.QuestionableScore, AuditScenarioFieldCorrect.FYI,
AuditScenarioFieldCorrect.ContextPage,
AuditScenarioFieldCorrect.ContextStart, AuditScenarioFieldCorrect.ContextEnd
FROM (awAuditToolFieldDef INNER JOIN AuditScenarioFieldCorrect ON
awAuditToolFieldDef.AuditToolFieldID = AuditScenarioFieldCorrect.FieldID)
LEFT JOIN AuditToolGroup ON awAuditToolFieldDef.ParentGroupID =
AuditToolGroup.AuditGroupID
WHERE (((AuditScenarioFieldCorrect.ScenarioID)=[Enter ScenarioID]));
Thanks;
Amy
Section 1
Field 1
Field 2
Field etc...
Section 2
Subsection 1
Field 1
Field 2
Subsection 2
Field 1
etc...
Note that the fields are bits of data that need to be filled in, but don't
directly correspond to the form fields. I'm having trouble wrapping my head
around how to get the fields to be directly under the section when there is
no subsection, but under the subsection when such exists.
I have a query that I think is giving me the right data, but I need a few
pointers on how to make the report do what I want.
If it helps, this is the query:
SELECT
IIf(IsNull([AuditToolGroup].[AuditGroupDesc]),[awAuditToolFieldDef].[AuditGroupDesc],[AuditToolGroup].[AuditGroupDesc])
AS ParentDesc,
IIf(IsNull([AuditToolGroup].[AuditGroupDesc]),"",[awAuditToolFieldDef].[AuditGroupDesc])
AS ChildDesc, awAuditToolFieldDef.FieldLabel,
AuditScenarioFieldCorrect.CorrectValueID,
AuditScenarioFieldCorrect.CanBeQuestionable,
AuditScenarioFieldCorrect.QuestionableScore, AuditScenarioFieldCorrect.FYI,
AuditScenarioFieldCorrect.ContextPage,
AuditScenarioFieldCorrect.ContextStart, AuditScenarioFieldCorrect.ContextEnd
FROM (awAuditToolFieldDef INNER JOIN AuditScenarioFieldCorrect ON
awAuditToolFieldDef.AuditToolFieldID = AuditScenarioFieldCorrect.FieldID)
LEFT JOIN AuditToolGroup ON awAuditToolFieldDef.ParentGroupID =
AuditToolGroup.AuditGroupID
WHERE (((AuditScenarioFieldCorrect.ScenarioID)=[Enter ScenarioID]));
Thanks;
Amy