Print Page | Close Window

Assign Unique Record Number?

Printed From: Crystal Reports Book
Category: Crystal Reports for Visual Studio 2005 and Newer
Forum Name: Report Design
Forum Discription: The best way to design a report and problems you have encountered
URL: http://www.crystalreportsbook.com/forum/forum_posts.asp?TID=11632
Printed Date: 21 May 2024 at 3:41pm


Topic: Assign Unique Record Number?
Posted By: althomas
Subject: Assign Unique Record Number?
Date Posted: 09 Nov 2010 at 6:10am
Hi,
 I was curious to know if there was any way to assign a unqiue record number to a report that will not be repeated again. (ex. Invoice#, PO#, etc).
My goal was to create a receiving report for our company with a unique "receiver" number assigned everytime we receive some item in to stock. This "receiver number" cannot be repeated for another receipt, so it must be unique.
 
Thank you for all of you help in advance.....



Replies:
Posted By: quintonmartin
Date Posted: 09 Nov 2010 at 8:46am
Hi,
  Typically your database would store that value, and your application or database would create it, and the report would just print the value that is stored in the database.  That way, if you need to reprint the invoice, it still has the original number.
 
Perhaps you could use a combination of the date + Time + milliseconds to get a pseudo-unique number.
 
Quinton


Posted By: althomas
Date Posted: 10 Nov 2010 at 2:18am

Thanks Quinton.

The problem is that our database/application does not have this particular report. i wanted to create this from scratch. But you suggestion of Date+time+millisecond seems to be logical.



Print Page | Close Window