Not IsValid. That may give you a wrong answer under certain circumstances. The way described prior in this thread is correct.
j. On Jun 22, 2011, at 5:29 PM, Tim Mansour wrote: > The best way to tell if there are actual related records is to test > for them using > > IsValid ( Relationship::Field ) > > before you do your GTRR. > > > Tim Mansour <[email protected]> > Neologica Print & Promotions ABN 63 904 335 408 > Certified FileMaker 10 Developer > PO Box K1163 : Haymarket NSW 1240 > Mobile 0405 500 846 > > On 22/06/2011, at 20:26, Peter Buchanan <[email protected]> wrote: > >> When using the Go to Related Record script step, is there a specific error >> code to look for with Get Last Error, for example if there are no related >> records? I am trying to figure out what happens if there are no related >> records : >> >> I am using GTRR, and then importing the related records into another table. >> How do I ensure only the related records (matching the current record) are >> imported? Will GTRR still go to the layout (in related table) specified in >> this command, even if no related records? Will the found set in related >> table be nil records if no related records, or will it comprise all records? >> >> Much appreciate any advice on checks to use with this script step. >> >> Regards >> Peter -- Jonathan Fletcher FileMaker 9 & 10 Certified Developer Fletcher Data Consulting [email protected] http://www.fletcherdata.com 502-509-7137 Kentuckiana's FileMaker Users Group Next meeting: June 28, 12:00 pm to 3:00-ish Listserv signup: http://fmpug.com/mailman/listinfo/louisville_fmpug.com Blog: http://www.kyfmp.com
