Normal Topic [Solved] Global Values - want to start @ 1001 (Read 423 times)
esgage
Junior Member
**
Offline


No personal text

Posts: 55
Joined: Dec 8th, 2005
[Solved] Global Values - want to start @ 1001
Mar 6th, 2008 at 12:01pm
Print Post Print Post  
Hello..

Thank you for the link for the code of making a serial number using the global values. My question now is I have the code in place. However, I want this value to begin at a certain number say 1001, and not 1. How can I set the Global Value to begin at a number other than 1 and then add 1 to it each time?

Thank you,

Kevin
E & S Gage
« Last Edit: Mar 6th, 2008 at 1:51pm by Hammer »  
Back to top
 
IP Logged
 
Hammer
YaBB Administrator
Lanticans
*****
Offline


Fire bad. Tree pretty.

Posts: 3436
Location: Ohio
Joined: Nov 22nd, 2002
Re: Global Values question - want to start @ 1001
Reply #1 - Mar 6th, 2008 at 12:43pm
Print Post Print Post  
Retrieve a single record. Any record.

Use Mass Update to set the GlobalValue to the desired starting point.
Code
Select All
GlobalValue("gvMyGlobalValue", "1001") 

  

- Hammer
The plural of anecdote is not data.
Back to top
IP Logged
 
esgage
Junior Member
**
Offline


No personal text

Posts: 55
Joined: Dec 8th, 2005
Re: Global Values question - want to start @ 1001
Reply #2 - Mar 6th, 2008 at 1:41pm
Print Post Print Post  
Wow - how easy!!

Thank you very much for the input!! What a great resource. Cool
  
Back to top
 
IP Logged