INTELLIGENT WORK FORUMS
FOR COMPUTER PROFESSIONALS

Log In

Come Join Us!

Are you a
Computer / IT professional?
Join Tek-Tips Forums!
  • Talk With Other Members
  • Be Notified Of Responses
    To Your Posts
  • Keyword Search
  • One-Click Access To Your
    Favorite Forums
  • Automated Signatures
    On Your Posts
  • Best Of All, It's Free!

*Tek-Tips's functionality depends on members receiving e-mail. By joining you are opting in to receive e-mail.

Posting Guidelines

Promoting, selling, recruiting, coursework and thesis posting is forbidden.

Jobs

Grouping and Sorting: Custom display order

Grouping and Sorting: Custom display order

(OP)
I need to produce a report that i can use to count the number of instances or episodes of contacts that occurred within 72 hours of the initial contact being recorded.
I have currently grouped my report on the individual record and then by date and time. The 'section will be printed' drop allows the list to be displayed by week, day, month etc. but it does seem to be possible to add to it

Any ideas greatly appreciated.

Many thanks in advance

RE: Grouping and Sorting: Custom display order

Use a record selection formula like this:

{table.datetime} in {table.initialcontact} to datetime(dateserial({table.initialcontact}), timeserial(hour({table.initialcontact})+72,minute({{table.initialcontact}), second({table.initialcontact})))

If the initial contact is not a separate datetime field, but only the first datetime field, then replace {table.initialcontact} in the formula above with a SQL Expression {%initcontact}:

(
Select min(a.`datetime`)
From table a
Where a.`person`=`table`.`person`
)

Depending upon your database you might have to use different punctuation (quotes), and also depending upon your version of CR you might have to omit the 'a' in the first line only.

-LB

Red Flag This Post

Please let us know here why this post is inappropriate. Reasons such as off-topic, duplicates, flames, illegal, vulgar, or students posting their homework.

Red Flag Submitted

Thank you for helping keep Tek-Tips Forums free from inappropriate posts.
The Tek-Tips staff will check this out and take appropriate action.

Reply To This Thread

Posting in the Tek-Tips forums is a member-only feature.

Click Here to join Tek-Tips and talk with other members!

Resources

Close Box

Join Tek-Tips® Today!

Join your peers on the Internet's largest technical computer professional community.
It's easy to join and it's free.

Here's Why Members Love Tek-Tips Forums:

Register now while it's still free!

Already a member? Close this window and log in.

Join Us             Close