tmp_RepID := "aaaa"; Unit := @DbLookup("Notes":"NoCache"; tmp_RepID ; "($VIMPeople)";@Name(]]>

XXX-YY-MM-DD

where

XXXXX – counter, # of documents saved (ex. 00001)

YY – current year the doc is saved

MM – month

DD – day

the counter will reset back to 001 every 1st day of the month.

can it be done?

this is currently my formula for the counter:

Counter1 := @Elements(@DbColumn(“”:”ReCache”; “”:”” ; “($CounterLookup2)”; 2)) + 1;

@If(Counter1 < 10; FIELD Counter := “0000″ + @Text(Counter1) ;

Counter1 < 100; FIELD Counter := “000″ + @Text(Counter1) ;

Counter1 < 1000; FIELD Counter := “0″ + @Text(Counter1) ; NIL)

and this is my formula for the complete tracking number:

@If((@Text(@Month(Dt_Received_EA))) = “1″; Mnth := “01″; (@Text(@Month(Dt_Received_EA))) = “2″; Mnth := “02″;

(@Text(@Month(Dt_Received_EA))) = “3″; Mnth := “03″; (@Text(@Month(Dt_Received_EA))) = “4″; Mnth := “04″;

(@Text(@Month(Dt_Received_EA))) = “5″; Mnth := “05″; (@Text(@Month(Dt_Received_EA))) = “6″; Mnth := “06″;

(@Text(@Month(Dt_Received_EA))) = “7″; Mnth := “07″; (@Text(@Month(Dt_Received_EA))) = “8″; Mnth := “08″;

(@Text(@Month(Dt_Received_EA))) = “9″; Mnth := “09″; (@Text(@Month(Dt_Received_EA))) = “10″; Mnth := “10″;

(@Text(@Month(Dt_Received_EA))) = “11″; Mnth := “11″; (@Text(@Month(Dt_Received_EA))) = “12″; Mnth := “12″;NIL);

Yr := @Text(@Year(Dt_Received_EA));

Count := @Text(Counter);

FIELD SIR_TrNo_EA := Count + “-” + Mnth + “-” + @Right(Yr;2) ;

im currently using lotus domino designer 7.

your help is badly needed..

thanks a lot!

]]>Any constructive suggestions would be most welcome. Thanks!

]]>