Feb 16, 2005 #1 Remou Technical User Sep 30, 2002 13,030 BE Hi: Even though my site is only for very few people, I would like to use the server in a polite way. Is it very wrong to say: Code: Do While Not rstA.EOF SQL = "SELECT ... WHERE Code=" & rstA.Fields("Code") rstB.Open SQL, dbCon, 3, 3 Loop ? Thanks
Hi: Even though my site is only for very few people, I would like to use the server in a polite way. Is it very wrong to say: Code: Do While Not rstA.EOF SQL = "SELECT ... WHERE Code=" & rstA.Fields("Code") rstB.Open SQL, dbCon, 3, 3 Loop ? Thanks
Feb 16, 2005 1 #2 pkailas Programmer Jun 10, 2002 555 US Well as long as you don't type: Code: Do While Not rstA.EOF Idiot! Ok, Ok, that wasn't polite to rstA at all, was it? but no, honestly, your code is fine, however if you can do a join instead of nested loops, you'll find the performance to be quite a bit better. Upvote 0 Downvote
Well as long as you don't type: Code: Do While Not rstA.EOF Idiot! Ok, Ok, that wasn't polite to rstA at all, was it? but no, honestly, your code is fine, however if you can do a join instead of nested loops, you'll find the performance to be quite a bit better.