Here's a question about technique.
Although the books tend to start people out by referencing fields dynamically by name, I've found alot of uses for Absolute references to specific columns.
One of the more common uses tends to be when I need to walk through a recordset and want to iterate through all the fields regardless of number (as sometimes the scope of the project changes and I have to add fields)
Using references like:
rs.Fields(x).Value or rs.Fields(x).Name
The latter (.Name) I tend to use when building SQL queries and I know that I need the first two fields and then column 5-7, for example.
Thoughts?
Is there more processing time involved in using:
With rs
.Fields(x).Name
End With
vs
With rs
!fieldName
End With
Mike
Although the books tend to start people out by referencing fields dynamically by name, I've found alot of uses for Absolute references to specific columns.
One of the more common uses tends to be when I need to walk through a recordset and want to iterate through all the fields regardless of number (as sometimes the scope of the project changes and I have to add fields)
Using references like:
rs.Fields(x).Value or rs.Fields(x).Name
The latter (.Name) I tend to use when building SQL queries and I know that I need the first two fields and then column 5-7, for example.
Thoughts?
Is there more processing time involved in using:
With rs
.Fields(x).Name
End With
vs
With rs
!fieldName
End With
Mike