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

Duplicate Records...Sort of.... 1

Status
Not open for further replies.

ChiTownDiva

Technical User
Jan 24, 2001
273
US
Afternoon All...

I have duplicate records...sort of...in the details...

Date City Location Time Ses Code
1/14/2004 GA Atlanta 1234 S. 10th St .5 ABC1730
1/14/2004 GA Atlanta 1234 S. 10th St. .5 ABC1731
1/15/2004 GA Atlanta 1234 S. 10th St. .5 ABC1732

I need to be able say that the combination of Date, city, and location is a count of two or more sessions on one day.

If a user selects (y)es to the parameter {Single Half Day Session?}, the only session they will be able to view is:

1/15/2004 GA Atlanta 1234 S. 10th St. .5 ABC1732

If they select (n)o to the parameter, the user will see all three sessions.

I created a formula called {@Count} where count is

text({Date})+totext({Location})+totext({Room})+totext({City})

In the section visibility of the details, I have...

Count ({@Count}, {@Count}) >= 2 and {?Single Half Day Sessions?} = 'Y'

I don't know how to hide the "duplicate" sessions...it either hides too many records or not enough.

Any help would be greatly appreciated.

Thanks in advance

ChiTownDiva [ponytails]
 
You post is a littke confusing but if you mean if they say yes they need to see *one and only one* of the two similar rows (ie when they choose yes they should see two rows your example and three if they choose no)

For the detail line in the suppression formula x->2 place the following:

{@Count} = previous({@Count})


Lisa
 
You don't need count. Just create group by your
Code:
text({Date})+totext({Location})+totext({Room})+totext({City})
formula and put the fields both in the group header and in the detail section. Then if parameter NO, supress group header, if YES suppress detail section.
 
Thanks Nagornyi, it works like a charm [thumbsup]!!!

Oddly enough, I did have a group for the "text({Date})+totext({Location})+totext({Room})+totext({City})", but because I added the count, that's what was throwing it off.

Thanks again for your help!

ChiTownDiva [ponytails]
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top