recProspect.RESET; recProspect.SETCURRENTKEY(recProspect."Contact No",recProspect."User"); recProspect.SETFILTER(recProspect."Contact No","Contact No."); recProspect.SETFILTER(recProspect."User","USER ID"); IF recProspect.FIND('-') THEN MESSAGE('You have to Send the Details');
Comments
when the findfirst is called.
Independent Consultant/Developer
blog: https://dynamicsuser.net/nav/b/ara3n
AP Commerce, Inc. = where I work
Getting Started with Dynamics NAV 2013 Application Development = my book
Implementing Microsoft Dynamics NAV - 3rd Edition = my 2nd book
This ist the global vaiable USERID.
You use recProspect.SETFILTER(recProspect."User","USER ID");
What is "User ID"?
Is this an field in your table or an other variable and whats the value ?
Regards
recProspect.SETFILTER(recProspect."User",USERID);
I suggest to use SETRANGE instead of SETFILTER .. and using the ISEMPTY statement, like:
Eric Wauters
MVP - Microsoft Dynamics NAV
My blog