Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations IamaSherpa on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Using an Array for a Report Record Sourse

Status
Not open for further replies.

dgriffin

Programmer
May 26, 2001
50
US
I am trying to recreate an application in Access 97 that was originally written in Xbase. In particular, a report that summorizes fields that may or may not contain data.

Each year the user creates a new table that will contain that year's data. At report time the user is allowed to select which year they wish to report. I've got everything up to this point worked out.

The problem arises when during a given year one of the entries in the table spoke Chinese but no one spoke Russian, and another year, someone spoke Russian but no one spoke Chinese. However, the report must contain columns for both Chinese and Russian regardless of the existance of any data.

If I attempt to utilize a crosstab query to gather the data for the report, the crosstab won't contain a "Russian" field if there were no instances that particular year, and will error when the report expects a "Russian" field for the Russian column.

Can I somehow use in-line IIF's to avoid the potential errors?

Could I gather the data into an array (I know how to do that) to be used for the report's record source ( I DONT know how to do that!)?

Some detailed guidance would be greatly appreciated.

Thanks,
Dan
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top