I'm writing code for interface with an EDI application. When importing/exporting data I run several queries one after the other and need to somehow track the results of each. I will like to continue executing code only if the previous qry was successful not only because it didn't fail but also in terms of the number of records added/deleted, 'cause the next query will have to deliver results related to that quantity. I think OnError is not exactly what I need, but I might be wrong. Appreciate any help