I'm using nav 2016. But i'm getting the run time error: ' you do not have the following permissions on the TableData service password:Read'
i wrote this code in the report. contributed by #TallyHo.
Object - OnAfterGetRecord()
TheRecRef.OPEN(Object.ID);
NumberOfRecords:= TheRecRef.COUNT;
TheRecRef.CLOSE;
0
Answers
TheRecRef.OPEN(Object.ID);
if TheRecRef.READPERMISSION then
NumberOfRecords:= TheRecRef.COUNT
else
clear(NumberOfRecords);
TheRecRef.CLOSE;
No PM,please use the forum. || May the <SOLVED>-attribute be in your title!