Data Entry Unbound Form (1 Viewer)

KeithG

AWF VIP
Local time
Today, 14:44
Joined
Mar 23, 2006
Messages
2,592
I am creating an ubound form for data entry in the FE of my db. Once the user enters the data and presses the update button the form needs to add records to upto 8 tables. Is it more efficent to open up a recordset and use the add new method. Or use docmd.openquery to open an Append query to append the info? The table contain around 20,000 records so I assume that run the Append query would be more efficent than opening up a recordset for each new record.
 

edtab

Registered User.
Local time
Today, 22:44
Joined
Mar 30, 2002
Messages
257
It is my experience that running queries work faster than opening recordsets then adding new records via VBA (rs.addnew).

Even running an sql statement via the DoCmd.RunSQL command works faster than adding records via recordsets.
 

boblarson

Smeghead
Local time
Today, 14:44
Joined
Jan 12, 2001
Messages
32,059
Keith:

I think I'd tend to agree. If you can create a set of append queries, it would likely be faster than processing via a recordset opening up 8 different tables.
 

Users who are viewing this thread

Top Bottom