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

Array or Cross-tab?

Status
Not open for further replies.

jaxflorida

Technical User
Apr 16, 2002
27
US
Hello,

I am very glad I found this forum! I have only been using CR about 3 weeks now and I have been given a report to create. I am racking my brain trying to figure this report out. I would appreciate it if someone could help me out.

Let me explain what data I have...

A company can be in several "regions" (eg North CA, South CA, West FL, South FL, All FL)

Now, let me explain what I need...

I need a report that will look up all the regions a company is in and then apply a "check" to a "check box" if that company is in that region. All regions must show on the report but only those which the company is in should be checked.


So, I created a cross tab report that will show what regions a company is in. But I can't seem to bring that into my report to "check" any boxes. Secondly, since that didn't work, I have been researching arrays. I think I understand the concept behind an array, but I can't find how to populate it in any useful way.

Again, I would appreciate any help you can give.
 
A true cross-tab will not show all regions unless each region is represented in at least record in the report. I assume that a company in 5 regions will bring 5 records into the report?

If so, I would use a manual cross-tab as described in faq149-243, with a conditional column for each region. Then if the count is greater than 1 you print your checkmark.

My April newsletter described how to add checkboxes and other symbols to a report.

Ken Hamady, On-site Custom Crystal Reports Training & Consulting
Public classes and individual training.
Guide to using Crystal in VB
tek@kenhamady.com
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top