FINDLAST issue

lisakinslisakins Member Posts: 23
I have made the Interaction Log Entry table in NAV 4.0 (SQL 2000) editable so that the salesmen can enter directly into a tabular form.

Because I do not wish to affect any other functions, I have created a new form that is on the contact card and shows the editable form where the profile answers usually are.

I get an error as soon as any field is clicked to initiate a new entry, because the entry no. is 0.

I am attempting to have the entry no, increment to the next available when they access this form. I put the following code in the OnActivate trigger:


IF InteractionLogEntry.FINDLAST THEN BEGIN
"Entry No.":=InteractionLogEntry."Entry No."+1;

I am receiving an error when I try to compile that states, "You have specified an unknown variable FINDLAST Define the variable under 'Global C/AL Symbols'.

This wasn't what I expected, but I'venever used the FINDLAST function before.

Can someone explain how I can correct this error and capture the last Entry No. + 1 on new records?

Comments

Sign In or Register to comment.