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

Refering to a recordset member with a variable. 1

Status
Not open for further replies.

rickyoswaldiow

Programmer
Jul 16, 2007
127
GB
Good evening all.
Is it possible to reference a recorset member with a variable?

i.e.:
Code:
strString = "FieldName"

With rsRecordset
   ![strString] = "Some Text"
End With
 
This should work.

Code:
strString = "FieldName"

With rsRecordset
   .Fields.Item(strString).Value = "Some Text"
End With

(not tested)

-George

"the screen with the little boxes in the window." - Moron
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top