Hi
I have a Type Field in my table its Option
Values Company and Person
I want if user select Person Then Do Nothing but If User select Company ı want take a Message ('Please Select Person')
This My Code
IF LPerson.Type=Company THEN BEGIN
MESSAGE('Please Select A Person');
END ELSE
IF LCompany.Type=Person THEN BEGIN
MESSAGE('Person Selected');
END;
But its not work
How i can do this?
Comments
Try this code
IF TableName.Type=TableName.Type::Company THEN BEGIN
MESSAGE('Please Select A Person');
END ELSE
IF TableName.Type=TableNAme.Type::Person THEN BEGIN
MESSAGE('Person Selected');
END;
Here TableName is nothing but ur name of the table