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 wOOdy-Soft on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Recordset.Fields("FieldName")

Status
Not open for further replies.

rgbanse

MIS
Jun 4, 2001
211
US
I've used this type of code to determint the value for that field in that record.
What will tell me the Ordinal position of that field within that record. I know I've seen it before but can't bust the code.
Thx
RGB
 
Not sure how to do what you asked but as I remember, an object's ordinal position is dependent on the order it was added to the collection (beginning with 0).
So you could loop through the collection and assign numbers corresponding to the ordinal position as an array.

Vince
 
I think it is rs.fields(n).property eg. fields(0).name gives one the field name rs.fields(1) = sometext sets the value, etc
 
Found it !!
RecordSet.Fields![FieldName].OrdinalPosition gives the position of the field in the record.
Keep in mind that the first field is (0) position
Thx for the options
RGB
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top