August 11, 200421 yr In my old FMP 5.5 files. I used the "go to related records" script step and the Current found count function to trigger a message when no related record is found. The message appears if the current found count =0 after the "go to related records" step. I converted the files to Version 7. It seems that if no related record is found, the found set in the related file will not change. the found set would be the same as if the "go to related records" script step didn't run. The found cout would not change to 0 accordingly; therefore, I could not trigger the message. I think I can re-write my scripts, use find script to achive the same result. If you know that it's still possible to use the "go to related records" script step in this case, could you please let me know how? I hope I can salvage my old scripts. Thanks in advance.
August 12, 200421 yr Make it easier on yourself and test for related records before going to them. If [isEmpty(relationship::serial)] Show Custom Dialog ["There are no related records."] Else Go to Related Records End If
Create an account or sign in to comment