Sequential numbers - help

this is my code i want to replace the messabox and the numbers from messagebox the sequence numbers i want it, in the field for example when i open the form the messagebox appear a number 8 for example i want the number 8 from my field instead of message box

how can i resolve this any one who help me…this is the code:::

Dim session As New NotesSession

seqNo = session.GetEnvironmentValue("SeqNo")

If Isempty(seqNo) Then

	Call session.SetEnvironmentVar("SeqNo", 1)

Else

	seqNo = seqNo + 1

	Call session.SetEnvironmentVar _

	("SeqNo", Cint(seqNo))

End If

Messagebox session.GetEnvironmentValue("SeqNo")

Subject: sequential numbers - help

Which field? There is no mention of a field in your code

Subject: sequential numbers - help

hi jayhson,

i am sorry but i didnt quite get your question. can u explain again, i think i may be able to help u.

Rosie

Subject: RE: sequential numbers - help

i want the sequence number from my fields… because in that case of my code there will be have a messagebox i want the number from the messagebox from the fields…