![]() | |
![]() |
| | Thread Tools | Display Modes |
#1
| |||
| |||
|
#2
| |||
| |||
|
|
Is there a way (i.e. a formula) that will allow us to automatically assign a consecutive job number to each new record? The catch is the format of the job number: the first two numerals represent the year (currently 05), the next two numerals represent the month (i.e. June would be "06," October would be "10") and the third two numbers represent the consecutive job number beginning with "01" at the start of each month. We would never do more than 99 jobs each month. |
#3
| |||
| |||
|
|
On 6/8/2005, Jo wrote: Is there a way (i.e. a formula) that will allow us to automatically assign a consecutive job number to each new record? The catch is the format of the job number: the first two numerals represent the year (currently 05), the next two numerals represent the month (i.e. June would be "06," October would be "10") and the third two numbers represent the consecutive job number beginning with "01" at the start of each month. We would never do more than 99 jobs each month. Create a SERIAL field, an Auto-Enter serial number. Create a calculation field SERIAL ID (returned as TEXT) with a formula such as: Right ( Year ( Get ( CurrentDate ) ); 2) & If ( Month ( Get ( CurrentDate ) ) < 10; "0" & Month ( Get ( CurrentDate ) ) ; Month ( Get ( CurrentDate ) ) ) & If ( Serial < 10; "0" & Serial; Serial) Written for FM7; if you're on 6 or earlier, change "Get" to "Status". |
)![]() |
| Thread Tools | |
| Display Modes | |
| |