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 wOOdy-Soft on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

possible formula question

Status
Not open for further replies.

espltd

Programmer
Apr 6, 2005
233
US
I have a string field that typically only has three different values for an entire dataset. So for example
row # location
1 Calif
2 Calif
3 Ariz
4 Calif
5 Nev
6 Calif
I was just wondering if there is a way to only display the unique string values in the header of the report, possibly using a formula? So in the header I would want something like
location 1 Calif
location 2 Nev
location 3 Ariz
Thanks Paul.
 
If I understand you correctly, in the report header you want to display a list of the locations that are included in the report, right?

To do this, you'll need to use a subreport. The subreport will have the same tables, links between them, and record selection criteria as your main report. If you're using parameters to filter your data, select the parameters from the main report as "subreport links" to you subreport - that way they'll get set automatically from the main report. Group the subreport on the Location field, put the location in the group header, and suppress the details and group footer sections.

-Dell

A computer only does what you actually told it to do - not what you thought you told it to do.
 
Hi thanks for the response. I ended up using a subreport as you stated above. I just used the same dataset as I have on the main report and created a group on the locations and suppressed everything else on the subreport.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top