gaby78 Posted April 18, 2007 Share Posted April 18, 2007 I have 2 fields: Vendor and TicketNbr The rule is: if Vendor is “PBS” the user must enter a TicketNbr, If vendor is not “PBS” a TicketNbr is optional. I tried Case (Vendor = “PBS”; Not IsEmpty(TicketNbr)) but it keeps requiring a TicketNbr regardless of what is entered in Vendor. I tried various combinations with Case( ) and If ( ) etc…but nothing worked. Link to comment Share on other sites More sharing options...
mr_vodka Posted April 18, 2007 Share Posted April 18, 2007 Try Case (Vendor = “PBS”; 0; 1 ) Link to comment Share on other sites More sharing options...
David Jondreau Posted April 18, 2007 Share Posted April 18, 2007 Case (Vendor = “PBS” and isEmpty(TicketNbr); 0; 1 ) Link to comment Share on other sites More sharing options...
gaby78 Posted April 18, 2007 Author Share Posted April 18, 2007 Hello Mr. Vodka and David: Thanks for trying to help. I tried both expressions but didn't work. It does not validate; If you enter PBS as Vendor it allows you to move on without entering anything in TicketNbr. Link to comment Share on other sites More sharing options...
David Jondreau Posted April 19, 2007 Share Posted April 19, 2007 Put that calc in the Vendor validation. Link to comment Share on other sites More sharing options...
gaby78 Posted April 19, 2007 Author Share Posted April 19, 2007 It works perfectly. Thanks David Link to comment Share on other sites More sharing options...
Recommended Posts
This topic is 6214 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