I have a report which runs against a crosstab query which generates a monthly summary of sales by agent.
Every month a new month is added to the data. The query automatically includes the data but the report must be modified monthly to include the new month's data.
I'd like to generate a function that I use in the report that allows me to input text boxes for each month of the year but have a calculated field in each text box.
The calculated field would check to see if the field exists in the query and if so place the value of the field in the text box. If the field does not exist then show null.
ie: iif("TableName". "FieldName" exists, then [Jan2002], else Null)
I've tried a few code samples I've found on the Net but I'm still unable to find a working solution.
Any suggestions will be greatly appreciated.
Thanks.
Every month a new month is added to the data. The query automatically includes the data but the report must be modified monthly to include the new month's data.
I'd like to generate a function that I use in the report that allows me to input text boxes for each month of the year but have a calculated field in each text box.
The calculated field would check to see if the field exists in the query and if so place the value of the field in the text box. If the field does not exist then show null.
ie: iif("TableName". "FieldName" exists, then [Jan2002], else Null)
I've tried a few code samples I've found on the Net but I'm still unable to find a working solution.
Any suggestions will be greatly appreciated.
Thanks.