dbTalk Databases Forums  

Limit search in script

comp.databases.filemaker comp.databases.filemaker


Discuss Limit search in script in the comp.databases.filemaker forum.



Reply
 
Thread Tools Display Modes
  #1  
Old   
D
 
Posts: n/a

Default Limit search in script - 07-07-2005 , 08:59 AM






Hi

I just made the following script with help from this group :-)

Go to Layout ["Database" (Table)]
Enter Find Mode []
Insert Calculated Result [Select; Table:ate; Get (CurrentDate) - 7 & "..."
& Get (CurrentDate)]
Perform Find []
Sort Records [Restore; No dialog]
Enter Preview Mode [Pause]
Enter Browse Mode []
Go to Layout [original layout]

All the right records are shown this way, however I would like to limit the
search, so that all the records, which do not contain anything in the field
Table::Made by are not shown.

Does anybody know how?

Thanks

Daniel



Reply With Quote
  #2  
Old   
Daniel
 
Posts: n/a

Default Re: Limit search in script - 07-08-2005 , 10:56 AM







Quote:
Go to Layout ["Database" (Table)]
Enter Find Mode []
Insert Calculated Result [Select; Table:ate; Get (CurrentDate) - 7 &
"..."
& Get (CurrentDate)]

New Record/Request
SetField( Table::Made, "=")
Omit Record/Request

Perform Find []
Sort Records [Restore; No dialog]
Enter Preview Mode [Pause]
Enter Browse Mode []
Go to Layout [original layout]


The modification above will exclude all records which are empty in
Table::Made.

Apart from using a new request, you might use a 'SetField (Table::Made,
">= 0") instead, which may return the same result, but which may depend
on your actual field type and contents (especially numbers vs. text).

Hi Martin

Thank you very much for your help!

/Daniel




Reply With Quote
Reply




Thread Tools
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

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off



Powered by vBulletin Version 3.5.3
Copyright ©2000 - 2012, Jelsoft Enterprises Ltd.