Wrox Programmer Forums
Go Back   Wrox Programmer Forums > .NET > Other .NET > Crystal Reports
|
Crystal Reports General discussion about Crystal Reports. For discussions specific to the book Professional Crystal Reports for VS.NET, please see the book discussion forum for that book.
Welcome to the p2p.wrox.com Forums.

You are currently viewing the Crystal Reports section of the Wrox Programmer to Programmer discussions. This is a community of software programmers and website developers including Wrox book authors and readers. New member registration was closed in 2019. New posts were shut off and the site was archived into this static format as of October 1, 2020. If you require technical support for a Wrox book please contact http://hub.wiley.com
 
Old November 1st, 2005, 07:33 AM
Registered User
 
Join Date: Aug 2005
Posts: 9
Thanks: 0
Thanked 0 Times in 0 Posts
Default How do you display first record of a field only

Hello. Maybe someone can help me achieve what I am trying to do? I have searched but failed to find an answer anywhere.

I have a report that has two datasources linked via Timestamp (Date field={TimeStamp}). The timestamp refers to sms messages i.e. when they were sent. I have many occurences of sms messages sent by different customers (mobile numbers). But the problem is, one mobile has many sms messages, sent at different dates.

What I would like to do is to have a formula that selects only the first record, ie the earliest date when an sms message was sent for any particualr mobile number. So the total count for one mobile is 1, rather than twenty.

I truly appreciate any help. Thanks.

 
Old November 7th, 2005, 07:49 AM
Authorized User
 
Join Date: Nov 2005
Posts: 44
Thanks: 0
Thanked 0 Times in 0 Posts
Send a message via MSN to joxa83 Send a message via Yahoo to joxa83
Default

try with making sql view or sp wich will give u data in just the way u want. like -- select max(timestamp), phonenumber from messages group by phonenumber






Similar Threads
Thread Thread Starter Forum Replies Last Post
Display Deleted record name Makepeace1 Classic ASP Databases 7 May 20th, 2008 10:20 AM
database record does not display magmo Classic ASP Basics 2 September 27th, 2007 03:46 PM
Copy previous field record if next field is null ecampos Access VBA 6 June 23rd, 2006 12:55 PM
record display Ashleek007 Beginning PHP 1 July 22nd, 2005 01:40 PM
Display one database record Mikej00 Classic ASP Databases 1 December 1st, 2004 07:14 AM





Powered by vBulletin®
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.
Copyright (c) 2020 John Wiley & Sons, Inc.