LarryLogic Posted November 5, 2003 Posted November 5, 2003 From only one layout, I want to force a field to be used IF another field is used. I have tried using "If" and "STATUS(CurrentLayoutName)" in the field validation by calculation. I can't find the right combination. Just a reminder message would work. Larry
ernst Posted November 5, 2003 Posted November 5, 2003 Hi Larry, Try: Case((Status(CurrentLayoutName) = "YourLayout") and not IsEmpty(AnotherField) and IsEmpty(TheField); 0 ; 1) Regards, Ernst.
LarryLogic Posted November 6, 2003 Author Posted November 6, 2003 Ernst, My fields are STARTAMOUNT and CUSTOMER. If STARTAMOUNT is used I need to force a customer. I also have the opposite on a different layout. Would I use your code in the Calc validation for the field? How would I place the field names. Thank you for the help. Larry
ernst Posted November 6, 2003 Posted November 6, 2003 Hi Larry, Code goes indeed in the Calc validation for the CUSTOMER field: Case((Status(CurrentLayoutName) = "YourLayout") and not IsEmpty(STARTAMOUNT) and IsEmpty(CUSTOMER); 0 ; 1) Regards, Ernst.
LarryLogic Posted November 7, 2003 Author Posted November 7, 2003 OK, now it gives me a "THIS FIELD CANNOT BE FOUND" error and highlights the ;0;1 I don't know how to relate this to setting the field as "MUST ENTER" or NOT. Or inputing "not used" would work. Sorry, I have tried to find examples in help on these calculation and formula codes without any success. Larry
kenneth2k1 Posted November 7, 2003 Posted November 7, 2003 Hi: The euro version uses ( instead of (,). Judging from the calc, I think the same thing can be achieved using that same syntax without the case statement. But whatever works.
Recommended Posts
This topic is 7790 days old. Please don't post here. Open a new topic instead.
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now