randyinla Posted November 13, 2015 Posted November 13, 2015 Hi, I'm trying to find records with a number field that are greater than or less than 2 numbers, i.e. if I'm looking for the records greater than 115 and less than 120. $myFind->addFindCriterion('ssvm', '>115'); $myFind->addFindCriterion('ssvm', '<120'); do I need $myFind->setLogicalOperator(FILEMAKER_FIND_AND); or am I way off base? Thanks for your advice!
randyinla Posted November 13, 2015 Author Posted November 13, 2015 thanks Webko, that's terrific. you're a champ! How would that work using variables? addFindCriterion('ssvm', '$Num1...$Num2');
webko Posted November 13, 2015 Posted November 13, 2015 Out of habit, I create the variable outside the actual request and then use it $startNum = "115"; $endNum = "120"; $range = $startNum."...".$endNum; addFindCriterion('ssvm', $range);
randyinla Posted November 13, 2015 Author Posted November 13, 2015 thanks Webko, that's tight coding!
Recommended Posts
This topic is 3554 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