Hi, NCCarol.
The strategy depends on what you're trying to do. Do you wish to:
1) Print only those records where at least one of the 24 fields in not
blank, with a comma placeholder for blank fields, e.g.,
1/4/2005: Field1Value,,,,Field5Value, ...etc.
or
2) Print only those records where ALL of the 24 fields are not blank and not
any others
or
3) Print only the non-null value fields for each record. This is possible
but you might lose the ability to know which field the value came from.
Date Input Strategy: Create a simple unbound form with two textboxes with a
Date input mask in which to input the beginning and end dates, named, say,
BegDate and EndDate.
General Query Strategy: Create a query that has the criteria row in the
Date column equal to:
Between Forms!YourFormName!BegDate And Form!YourFormName!EndDate
Approach-Specific Query Strategies:
1) In the first Criteria row, add the criteria Is Not Null to the first of
the 24 fields. In the next row, add Is Not Null to the second field, and cut
and paste the Between... criteria to the 2nd row of the Date field. Continue
until you have 24 rows.
2) This requires a logical AND. Place Is Not Null in the 1st criteria row
of all 24 fields.
3) Select all 24 fields.
Report strategies
1) & 2) A Calculated Control. Set the Control Source to:
= [Date] & ": " & [Field1] & ", " & [Field2] & ... [Field23] & ", " &
[Field24]
3) A Calculated Control. Set the Control Source to:
= [Date] & ": " & IIf(IsNull([Field1]),"",[Field1]&", " ... &
IIf(IsNull([Field24]),"", [Field24])
Hope that helps.
Sprinks
NCCarol said:
I would like to print all dates within a time period , and 24 different
fields if they have data. i would like the print out to look like this:
date: field One, field two, etc.
I would appreciate any suggestions.