dbTalk Databases Forums  

KeyField: Seriel Number vs Reference Number

comp.databases.filemaker comp.databases.filemaker


Discuss KeyField: Seriel Number vs Reference Number in the comp.databases.filemaker forum.



Reply
 
Thread Tools Display Modes
  #1  
Old   
Brent Simon
 
Posts: n/a

Default KeyField: Seriel Number vs Reference Number - 07-16-2004 , 12:00 PM






Ref: WinXP Pro, FMP 6.0



Just looking for some feed back on Key Fields / Related Records.

Over the years I have developed an extensive "Solution" of 100+ files for
work. Everything from Inventory, Quality Control, Sales Orders, Customer
Master, bla bla bla.

I started out using Reference Numbers as Key Fields (InvoiceNo,
MillOrderNo, ReceiverNo, etc.) to link the records.

After taking lead from Lynn Allen Base62 calculation (Thanks!), I started
changing over to a unique Serial Number I came up with:

Right(Year( Status( CurrentDate)),2) &
If( Month( Status( CurrentDate) ) < 10 , "0" ,"" ) & Month( Status(
CurrentDate) ) &
If( Day( Status( CurrentDate) ) < 10 , "0" ,"" ) & Day( Status(
CurrentDate) ) & "." &
If( Hour( Status( CurrentTime) ) < 10 , "0" , "" ) & Hour( Status(
CurrentTime) ) &
If( Minute( Status( CurrentTime) ) < 10 , "0" , "" ) & Minute( Status(
CurrentTime) ) &
If( Seconds( Status( CurrentTime) ) < 10 , "0" , "" ) & Seconds( Status(
CurrentTime) ) & "." &
Middle(Random,2,4)

Giving me a serial number like 040715.085402.2357.

I know, a little long, but I can decipher it at a quick glance. (Though I
may change over to the Base64 Calculation developed by Lynn soon though,
but haven't decided yet.

Can anyone come up with a good reason to use one over the other system?
Serial number vs Reference Number?

Thanks!

Brent Simon



Reply With Quote
Reply




Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off



Powered by vBulletin Version 3.5.3
Copyright ©2000 - 2012, Jelsoft Enterprises Ltd.