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!

Group-wise record ids...in CR9

Status
Not open for further replies.

busybeetle

IS-IT--Management
Aug 11, 2003
1
IN
Hi!I want a group-wise running serial number generated. How do I go about doing this in Crystal report 9. An example of the scenario suppose for a set of records from a table X are linked to a set of records in table Y. The query would return all the child records for a given group (group-wise). Now, the serial number for the same have to be generated in cr9.

Thanks
 
Depends on what you want in a serial number.

A sensible approach is to save serial numbers to a table somewhere, allowing for matching orders to the S/N, so this would mean creating a Stored Procedure.

You also have a few other means available:

You can use the record number in conjunction with the datetime:

totext(year(currentdatetime),0,"")+totext(month(currentdatetime))+totext(day(currentdatetime))+totext(
hour(currentdatetime))+totext(minute(currentdatetime))+totext(second(currentdatetime)
)+totext(recordnumber,0,"")

-k
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top