aalkemist Posted July 12, 2012 Posted July 12, 2012 All -- Trying to do a "simple" customer find using any of 3 fields or a combination of the fields. I have not a clue, so I've tried a script linked from a button(in shorthand): Enter Find Mode Set Field First Set Field Last Set Field Custnum perform find How do I know if it finds anything and then choose the one I want and go to it I've spent 1/2 a day on this and I'm about 4 days old with FMP Help would be great - pointing me to something I can read and understand would be great. thanx, Greg
Ocean West Posted July 13, 2012 Posted July 13, 2012 Greg what type of find do you want AND or OR? your current script is very restrictive. Do you wish it to behave like google or the quick find feature of FMP? in that case you could use the QuickFind script step. or insert a NEW RECORD/REQUEST between your set fields in your current script. Stephen
aalkemist Posted July 13, 2012 Author Posted July 13, 2012 Hi -- Sory, what I'm tryin to do is a customer lookup - so each customer has a unique customer number, but if the customer number is not known then it's a first & last name thing - so I want to have the option to put in either the customer number, which will return one result or first+last which may return multiple results and then choose the customer(record) I wish to view Thanx, Greg
Lee Smith Posted July 13, 2012 Posted July 13, 2012 Hi Greg, ,,,snip... customer has a unique customer number, but if the customer number is not known then it's a first & last name thing ...snip... Unless you have a very small number of customers, finding by customer numbers will be problematic, The best method would be to do either an AND or an OR find for the names. Read up on Finding Records. AND find = ONE Record Request and all search criteria is entered on it. i.e. First Name and Last Name, Perform Find. OR find = TWO OR MORE Record Requests, ONE for each search criteria i.e. First Record Request enter First Name, Second Record Request enter Last Name. Perform Find HTH Lee
aalkemist Posted July 14, 2012 Author Posted July 14, 2012 Lee -- ok, I don't understand why searching by customer number would be problematic? I have a field that contains the CN# so if I tell the search to only search the records for that number in that field I'm not sure why it would be a problem?? Confused I am to say the least. I guess I'm not understanding the nomenclature just yet. Greg
Lee Smith Posted July 14, 2012 Posted July 14, 2012 How are you creating your customer number? I have a feeling that we are talking about two different things. A customer identification number in my mind is one provided via the Auto-Enter function, and is not related to any of the data about the customer other than it was the next serial number available when the Customer's Record was created. In other words, it could be any number, so how would you know what one to search for. Lee
No_access Posted July 14, 2012 Posted July 14, 2012 What might work well for you is creating a calculation field that equals the fields you want to search, then search that, ie... searchfield =accountnumber & " " & accountname & " " & accountzip now use a script that searches this field, if you have the script insert "*" before and after the search term you can do partials as well please see attached file. search.zip
Ocean West Posted July 14, 2012 Posted July 14, 2012 here is a few search methods, that i believe should help. Search.fmp12.zip
Recommended Posts
This topic is 4515 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