View Single Post
Old 06-27-2006   #5 (permalink)
streaker69
Psychic Amish Stumbler
 
streaker69's Avatar
 
Join Date: Jul 2004
Location: Virginville, BlueBall, Bird In Hand, Intercourse, Paradise, PA
Posts: 12,315
Quote:
Originally Posted by beakmyn
move your DIM outside of the loop so you declare them once and not everytime you go through the loop.
The real memory hog and slowness is creating a hook into your database every time you want to add a record.

Instead of using opensrecordset and insert consider adding a WHERE clause to your insert statment.
I may be wrong, but how does one do a WHERE on a Record that doesn't exist?

If you're inserting it, then you're creating the record, you can do a WHERE in the UPDATE, but I've never see one on a INSERT.

I could be wrong, never claimed to know everything about SQL.
__________________
Treat your gun like your genitals, only whip it out when it's absolutely necessary.
streaker69 is online now   Reply With Quote