Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
Home
Discussion GroupsFormsForms ProgrammingQueriesModules / DAO / VBAReports / PrintingMacrosDatabase DesignSecurityConversionImporting / LinkingSQL Server / ADPMultiuser / NetworkingReplicationSetup / ConfigurationDeveloper ToolkitsActiveX ControlsNew UsersGeneral 1General 2
Access DirectoryToolsTutorialsUser Groups
Related Topics
SQL ServerOther DB ProductsMS OfficeMore Topics ...

MS Access Forum / Modules / DAO / VBA / December 2005

Tip: Looking for answers? Try searching our database.

Updating via code or query

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
Janis in Minnesota - 15 Dec 2005 17:18 GMT
I have a process that selects data to update/append to different tables.  
Which is the fastest way to get this done?   Should I utilize queries and
pass parameters?  Or should I open the recordset in code and do rs.updates?

Thanks very much for any advice/information!

Janis is MinneSNOWta  :)

Merry Christmas!
Klatuu - 15 Dec 2005 19:12 GMT
The fastest and easiest way is:
CurrentDb.Execute("querynameOrSQLString"), dbFailOnError

The reason is it going directly to Jet.  Just for fun, compare the above to
DoCmd.RunSql("querynameOrSQLString").  This method goes through Access and
runs much slower.

As to the parameters issue, my favored approach it to create an SQL string
without the Where condition, then add the Where condition based on user
selections.

> I have a process that selects data to update/append to different tables.  
> Which is the fastest way to get this done?   Should I utilize queries and
[quoted text clipped - 5 lines]
>
> Merry Christmas!
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.