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

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

Recommended Posts

Posted (edited)

I have a script that importing records from via ODBC. It is a SQL database. Basically, I need to populate some subfields in another table based on the query results. A simplified version of the query would be "Select * from teacherdata where StateID = FMPDB:stateid" The script runs through the records in table A (which includes a value in the stateID field) and populates table B with the results of the query. I'm basically pulling down 1 record at a time from a secordary database.

My problem is that Table A has 1491 records and after a successfull run of the script Table B only had a little over 1300 records. My guess is that the query didn't return results before the script advanced to the next record and sent another query.

Is there a way to have a script wait for the results to be returned from the query before going on to the next step?

Thanks.

Edited by Guest
Posted

Could you use something like:-

Loop

Exit loop if IsValid(A to B relationship)

Pause 1 second

End loop

You might want to add a counter to the loop to exit the loop after say 20 seconds

This topic is 6872 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.