Jump to content

Having a script wait for results


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

Recommended Posts

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
Link to comment
Share on other sites

This topic is 5710 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
 Share

×
×
  • Create New...

Important Information

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