Miss A! Posted March 9, 2016 Posted March 9, 2016 Hi Forum, Please help me solve a calculation for this problem, i have a table with various records, i would like to implement a field called Order_Check that would display a "1" if the table field Order_Num begins with "PT00" if otherwise it must display "0". This field Order_Num for invoice records appear to be either empty, has value ID that begins with PT00* or just have some random values, i tried the calculation: IF(Order_Number = "PT00*", 1, 0) Thank you for assisting, Miss-Amen!
Kris M Posted March 9, 2016 Posted March 9, 2016 (edited) Your test will only return 1 when the contents of the Order_Number field contains pt00*, PT00*, Pt00*, or pT00*. Why did you put an asterisk in there? Maybe this will get you a little closer to what you want. If ( Left ( Order_Number ; 4 ) = "PT00" ; 1 ; 0 ) Edited March 9, 2016 by Kris M 1
comment Posted March 9, 2016 Posted March 9, 2016 13 minutes ago, Kris M said: If ( Left ( Order_Number ; 4 ) = "PT00" ; 1 ; 0 ) Or shortly: Left ( Order_Number ; 4 ) = "PT00" 1
Recommended Posts
This topic is 3447 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