If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below.

 
Go Back  dBforums > PC based Database Applications > FileMaker > Search Options (multiple and/or functions)

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1 (permalink)  
Old 10-03-02, 04:47
tcchew tcchew is offline
Registered User
 
Join Date: Oct 2002
Posts: 1
Search Options (multiple and/or functions)

Hi all,

Can anyone help me with some search functions.

I have a form with a number of input fields (search fields). How can I code such that I can have multiple search functions (AND/OR)

e.g: ((Field A) AND (Field B) AND ((Field C) OR (Field D)))



Thanks !!
Reply With Quote
  #2 (permalink)  
Old 11-17-02, 23:09
Blaster Blaster is offline
Registered User
 
Join Date: Feb 2002
Location: Los Angeles
Posts: 6
FileMaker won't understand operators such as (AND,OR,NOT). But depending on type of data you are searching for there are several approaches you might take.

1) You could create a single Calc field that adds all your data fields: = (NAME & " " & ADDRESS & " " & CITY)

This will alow the user to search for any of the data in one 'Find' field.

Or

2) You could create several global fields where the user enters specific data into fields labeled: Containing, Exclude. Then you could script their input and paste the result into the appropriate field and add the filemaker operators "<", "=" and perform the find. Don't forget you can also script the 'Omit' function to exclude specific data types. You can also script the 'mulitple Find' function, which would also deliver a result simular to AND.

I wouldn't use the first option with files with more than 300,000 records or file size of more than 100mb, searching will be very slow.
Reply With Quote
Reply

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On