S
Sarah
I am learning (slowly) how and where to use VBA and SQL. I've noticed that
some jobs can be done using either. For example, I can have a button with
'ON CLICK' code including the SQL fragment:
UPDATE tblData SET Description = "Not Available" ,
but I can do the same thing with a Sub containing a code fragment like:
With rstData
Do While Not .EOF
!Description = "Not Available"
.Update
.MoveNext
Loop
End With
It seems like there are probably many jobs that can be done with VBA alone
or by involving SQL. Are there guidelines out there as to when it might be
best to adopt one approach over the other?
thanks in advance
Sarah
some jobs can be done using either. For example, I can have a button with
'ON CLICK' code including the SQL fragment:
UPDATE tblData SET Description = "Not Available" ,
but I can do the same thing with a Sub containing a code fragment like:
With rstData
Do While Not .EOF
!Description = "Not Available"
.Update
.MoveNext
Loop
End With
It seems like there are probably many jobs that can be done with VBA alone
or by involving SQL. Are there guidelines out there as to when it might be
best to adopt one approach over the other?
thanks in advance
Sarah