Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations derfloh on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

ADO: Referencing Fields

Status
Not open for further replies.

icargill

Programmer
Jul 16, 2002
3
GB
Assume I have an ADO recordset object, rs.

I can reference the fields in a number of ways, commonly people use

1. rs!FieldName

2. rs.Fields("FieldName") or rs.Fields(sVariable)

Obviously the second is useful for fields with spaces in the names, but what other relative merits are there?

Are there any (significant) performance issues?
 
Performance issues - none that I have ever run across. The ! syntax is a backward compatable item and is to be discontinued. As a matter of personal preference the ! syntax is less readable than the rs.Fields("FieldName"). Just my 2 cents worth. If you choose to battle wits with the witless be prepared to lose.
[machinegun][hammer]
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top