accessNator
Registered User.
- Local time
- Today, 02:59
- Joined
- Oct 17, 2008
- Messages
- 132
When I run an Append Query, it only takes 2 seconds to complete for testing. It appends 25 records to a link SQL Server table.
But If I create the same type of Query in VBA using
This process takes about 25 seconds.
Any ideas on how to speed this up in VBA code? I cant have the user go to a Append Query and manually click on it to execute.
Thoughts?
But If I create the same type of Query in VBA using
Code:
Dim str2 As String
str2 = "INSERT INTO dbo_CompanyToTypeOfElectionStatus ( FK_KCN_RefID, FK_TOES_RefID) "
str2 = str2 & "SELECT qryResultsDifferences1_Insert.kcn_RefId, qryResultsDifferences1_Insert.election_id "
str2 = str2 & "FROM qryResultsDifferences1_Insert;"
CurrentDb.Execute str2, dbSeeChanges
Any ideas on how to speed this up in VBA code? I cant have the user go to a Append Query and manually click on it to execute.
Thoughts?