Re: Assigning Serialized Customer Numbers

This WebDNA talk-list message is from

1997


It keeps the original formatting.
numero = 15464
interpreted = N
texte = >How do I assign new customers a unique Customer Number that is >sequentially greater than the highest existing customer number? >Is there an example to look at anywhere? Maybe, but I'm not sure off-hand.Here, I'll write one for you. It should work fine if you make a couple of obvious changes (to the database and field name, of course). And if you can understand how and why this works, that's even better ... :)[append db=XXX.db]fieldName=[math]1+[search db=XXX.db&nefieldNamedatarq=[blank]&fieldtype=num&defieldsort=1&max=1][founditem s][fieldName][/founditems][/search][/math][/append]Sincerely, Ken Grome ken@iav.com WebDNA Solutions http://www.smithmicro.com/webdnasolutions/... Associated Messages, from the most recent to the oldest:

    
  1. Re: Assigning Serialized Customer Numbers (Kenneth Grome 1997)
  2. Assigning Serialized Customer Numbers (Larry Orchier 1997)
>How do I assign new customers a unique Customer Number that is >sequentially greater than the highest existing customer number? >Is there an example to look at anywhere? Maybe, but I'm not sure off-hand.Here, I'll write one for you. It should work fine if you make a couple of obvious changes (to the database and field name, of course). And if you can understand how and why this works, that's even better ... :)[append db=XXX.db]fieldName=[math]1+[search db=XXX.db&nefieldNamedatarq=[blank]&fieldtype=num&defieldsort=1&max=1][founditem s][fieldName][/founditems][/search][/math][/append]Sincerely, Ken Grome ken@iav.com WebDNA Solutions http://www.smithmicro.com/webdnasolutions/... Kenneth Grome

DOWNLOAD WEBDNA NOW!

Top Articles:

Talk List

The WebDNA community talk-list is the best place to get some help: several hundred extremely proficient programmers with an excellent knowledge of WebDNA and an excellent spirit will deliver all the tips and tricks you can imagine...

Related Readings:

WC2b15 - [HTMLx]...[/HTMLx] problems (1997) Locking up with WebCatalog... (1997) send mail problem? (1997) [WebDNA] [MATH] & formatting (2015) [OT] Communigate List (2003) Fwd: Handling Charges (1999) RE: WebCatalog2 for NT Beta Request (1997) Removing [showif] makes a big difference in speed (1997) WebCatalog2 Feature Feedback (1996) PSC recommends what date format yr 2000??? (1997) tab as word delimiter (2000) my price won't move (1997) RE: New WebCatalog Version !!! (1997) subtotal (2000) Textarea (1998) Multi-processor Mac info ... (1997) Extended [ConvertChars] (1997) Paymethod question (1999) carriage returns in data (1997) requiredfields (2002)