Need to know if an SQL Query (See Below) executes each of the parts in the order that they are written in the query;
Example;
udq = _
"UPDATE BayCounts " & _
"SET [Count] = " & rsdbo.Fields("Count") - rsdbo.Fields("SumOfItems") & "," & _
" [AddTime] = #" & TimeValue(Now()) & _
"#, [AddDate] = #" & DateValue(Now()) & _
"# WHERE ID = " & CInt(Right(rsdbo.Fields("Bayno"), 2))
DoCmd.SetWarnings False
DoCmd.RunSQL udq
DoCmd.SetWarnings True
rsdbo.MoveNext
I need to add to this query, but the order of execution is critical. I suer that it does, but just want to make sure.
Thanks
jpl
Example;
udq = _
"UPDATE BayCounts " & _
"SET [Count] = " & rsdbo.Fields("Count") - rsdbo.Fields("SumOfItems") & "," & _
" [AddTime] = #" & TimeValue(Now()) & _
"#, [AddDate] = #" & DateValue(Now()) & _
"# WHERE ID = " & CInt(Right(rsdbo.Fields("Bayno"), 2))
DoCmd.SetWarnings False
DoCmd.RunSQL udq
DoCmd.SetWarnings True
rsdbo.MoveNext
I need to add to this query, but the order of execution is critical. I suer that it does, but just want to make sure.
Thanks
jpl