Newbies chris_413 Posted April 27, 2001 Newbies Posted April 27, 2001 I am very new at FileMaker I am trying to make a button that will perform a search if a field meets a certain criteria. For example: A field will either be: 10, 9.5, 9, 8.5... I would like a button that will search all the records listed as "10". or all records listed as "9.5"... Thanks for your help and patience.
LiveOak Posted April 27, 2001 Posted April 27, 2001 I think I understand what you want. You want to enter a number into a field (10,9.5,9,8.5...) and push a button to find all the records with this value? If this is the case: Create a field: gField (global, number) Write the following script: Allow User Abort (off) Set Error Capture (on) If (IsEmpty (gField)) Exit Script End If Enter Find Mode () <----- Uncheck Restore and Pause Set Field (field, gField) Perform Find() <----- Uncheck Restore If (Status(CurrentError) = 401) Show Message (No records found!, OK) End If This search can also be done manually by just going to Find Mode, entering the value you wish into "field" and clicking the find button in the status bar. -bd
Newbies chris_413 Posted April 29, 2001 Author Newbies Posted April 29, 2001 Thanks for the help but I'm still confused. Perhaps theres a more simple script? (im still new) Thanks for any help!
LiveOak Posted April 29, 2001 Posted April 29, 2001 You need to look in the Community forum for book recommendations and do some reading up on FileMaker. As simple as you can get is: Enter Find Mode (pause) <----- Uncheck Restore *** user enters number into field and hits enter *** Perform Find() <----- Uncheck Restore As a minimum, I'd read through the FM manual. -bd
Recommended Posts
This topic is 8613 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