Jump to content
Claris Engage 2025 - March 25-26 Austin Texas ×

This topic is 6480 days old. Please don't post here. Open a new topic instead.

Recommended Posts

Posted

I'm trying to write a script to loop through records in my Project table, and for each project, print a report of the related records (from a different - related - table).

How do I make my script account for the instance where no related records exist? (i.e., if no related records in table B, loop to next record in the Project table)

It doesn't seem to be an "error" per se, so I don't think the get (lasterror) function will do the trick (that was my first thought).

~Courtney

Posted

You can check to see if a related record exists by If [ IsEmpty ( RelatedTable::PrimaryKey ) ]

Posted

Thanks so much! That seems to have indeed done the trick.

~Courtney

This topic is 6480 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 account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...

Important Information

By using this site, you agree to our Terms of Use.