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

Passing the name of a field to a Recordset 1

Status
Not open for further replies.

jbranero

Technical User
Jun 3, 2005
17
US
Hi, I am trying to access the name of a field in a Recordset but when I try the following:

SSField = LTable!Field_1

Where: SSField is a string; LTable a Variant (treated as Recorset) and Field_1 a variable containing the name of the field.

I get a message: Item not found in this collection.
The point is that I have to pass the name of the field in a variable that get a differrent value everytime the proccess is called
Any help over there?
thanks
 
SSField = LTable(Field_1)

Hope This Helps, PH.
Want to get great answers to your Tek-Tips questions? Have a look at FAQ219-2884 or FAQ181-2886
 
As usual with you, it works perfectly... thanks a lot!!! and congratulations for being named the best helpfull in Tek-Tips.
j
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top