N
NEWER USER
I have several Update queries that I am running back to back in succession.
Is it better/faster to create the queries and then run the following:
Dim strDoc 1As String
Dim strDoc2 As String
strDoc1 = "Query1"
strDoc2 = "Query2"
DoCmd. OpenQuery strDoc1, acNormal, acEdit
DoCmd. OpenQuery strDoc2, acNormal, acEdit
OR
Dim sql1 As String
Dim sql2 As String
sql1 = "UPDATE tblData ..."
sql2 = "UPDATE tblData ..."
DoCmd.RunSQL sql1
DoCmd.RunSQL sql2
OR Just type
DoCmd.RunSQL "UPDATE tblData ..."
Looking for ther proper method. Thanks
Is it better/faster to create the queries and then run the following:
Dim strDoc 1As String
Dim strDoc2 As String
strDoc1 = "Query1"
strDoc2 = "Query2"
DoCmd. OpenQuery strDoc1, acNormal, acEdit
DoCmd. OpenQuery strDoc2, acNormal, acEdit
OR
Dim sql1 As String
Dim sql2 As String
sql1 = "UPDATE tblData ..."
sql2 = "UPDATE tblData ..."
DoCmd.RunSQL sql1
DoCmd.RunSQL sql2
OR Just type
DoCmd.RunSQL "UPDATE tblData ..."
Looking for ther proper method. Thanks