G
Guest
I have a table that has grown into too mnay fields and I don't have the time
to re-do things. Part of the problem I now have is that I need to report on
some data that is in the following fields and format:
Unit1 : True/False
Unit1Region : Single Digit (text)
Unit1Station : Two Digits (text)
Unit1Shift : Single Alpha (text)
Unit1ShiftNumber : Single Digit (text)
Unit1CAMT : Text (15 Characters max)
Unit1Form2 : Text (15 Characters max)
And the same fields for Unit2, Unit3 and Unit4.
The problem I now have is that I have been asked to provide a report on the
Units where the fields Unit#CAMT and / or Unit#Form2 are blank.
What I have tried to do is write a criteria string for a Open document
command that says:
if Unit# is True and Unit#CAMT is Null
or
If Unit# is True and Unit#Form2 is Null
then display the fields in the report. However, I have not had any luck
getting even Unit1 to report properly. And on top of this I need to look at
all four units in each record row and report all of the ones where Unit# is
True.
I am thinking that I need to copy all the record rows that match the
criteria into a temporary table and bind my report to that table. But I don't
know how to do this, or even if this is the best way to go. Perhaps I need to
redesign the database and break the main table into several smaller one.
Any ideas would be appreciated.
Cheers
to re-do things. Part of the problem I now have is that I need to report on
some data that is in the following fields and format:
Unit1 : True/False
Unit1Region : Single Digit (text)
Unit1Station : Two Digits (text)
Unit1Shift : Single Alpha (text)
Unit1ShiftNumber : Single Digit (text)
Unit1CAMT : Text (15 Characters max)
Unit1Form2 : Text (15 Characters max)
And the same fields for Unit2, Unit3 and Unit4.
The problem I now have is that I have been asked to provide a report on the
Units where the fields Unit#CAMT and / or Unit#Form2 are blank.
What I have tried to do is write a criteria string for a Open document
command that says:
if Unit# is True and Unit#CAMT is Null
or
If Unit# is True and Unit#Form2 is Null
then display the fields in the report. However, I have not had any luck
getting even Unit1 to report properly. And on top of this I need to look at
all four units in each record row and report all of the ones where Unit# is
True.
I am thinking that I need to copy all the record rows that match the
criteria into a temporary table and bind my report to that table. But I don't
know how to do this, or even if this is the best way to go. Perhaps I need to
redesign the database and break the main table into several smaller one.
Any ideas would be appreciated.
Cheers