Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Chriss Miller on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Polite use of Servers 1

Status
Not open for further replies.

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
 
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.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top