nn = @FormNewRecord ("Documents")
WriteLn ("The value on nn = " + @Str (nn) )
//WriteLN ("vLoop = " + @str (vLoop))
//WriteLN ("nn = " + @str (nn))
FormFieldValue ("Documents", "RecNumber", nn, vRecNumber)
FormFieldValue ("Documents", "DateAdded", nn, vDateAdded)
FormFieldValue ("Documents", "Chart", nn, Chart)
FormFieldValue ("Documents", "Description", nn, vDescription)
FormFieldValue ("Documents", "View", nn, vView)
FormFieldValue ("Documents", "FileName", nn, vFileName)
FormFieldValue ("Documents", "Key", nn, vKey)
Formcommit ("Documents")
The above command seems to return value of nn to @FormResultSetTotal ( ) instead of @FormResultSetTotal ( ) + 1. And because of that it overwrite the last subrecord of the form while creating new record. Is there something I am doing wrong? Is there some a work-around?
I am using ver 2.5.2