Hi All,
Is there any way to restrict users with out entering the salesperson code.
Because, we track sales based on the salesperson code. some users they are entering customer card without salesperson so those sales are not coming in to the sales report.
Thanks,
0
Comments
You will need to add code to do this, do you have a developers license?
If so, then onInsert of the customer table make Blocked=true.
then Onvalidate of the blocked field add
IF NOT Blocked THEN BEGIN
TESTFIELD("your mandatory field#1");
TESTFIELD("your mandatory field#2");
etc, etc,
END;
this way the customer cannot be used until somebody unchecks the blocked field and in doing so, will trigger the checks on the fields you need to have filled in. Don't forget Not Blank to YES on all thesde fields too.
if not, the best you can do then is to set the property of the field NOT BLANK = YES
and if you wish set the Property "InitValue" to a house acct or default salesperson code.
Then someone will be able to change it to the correct code but they will never be able to clear it.
Save->Compile->Enjoy!
http://www.BiloBeauty.com
http://www.autismspeaks.org
Could you explain what is the Use of Not Blank property in the Real time ?
Thanks in advance.
goto any card - View->Designer
Right Click on any field->Properties
Look at the property you have a question about, click it with your mouse
Hit F1
The only problem with this is that if the field is never clicked on/entered then it doesn't work. Hence the other solution.
http://www.BiloBeauty.com
http://www.autismspeaks.org