Which is better practice: complex SQL statements or Recordset manipulation in Access VBA?
Posted
by mazi
on Stack Overflow
See other posts from Stack Overflow
or by mazi
Published on 2010-03-09T22:35:09Z
Indexed on
2010/03/15
1:59 UTC
Read the original article
Hit count: 313
I'm doing some VBA development and I found creating SQLs quite efficient way of getting everything done (selecting and updating). But I got to this stage where my SQL statements contain complex Switches and WHERE conditions where I have another Selects to update appropriate records. Therefore, I create this SQLs and I simply run it via "CurrentDb.Execute strSQL" and it does everything fine.
The question is, why would I declare ADODB.connections etc, set recordsets, loop through it and manipulate the data one by one?
© Stack Overflow or respective owner