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

Help with recordset!!

Status
Not open for further replies.

neemi

Programmer
May 14, 2002
519
GB
I have two recordset. From the first recordset I am getting the description of a field and assigning it to a parameter as follows

strField = rs1![Field_Name]

I want to use the parameter to update a value in the second recordset.

The code I am using is something like:

If IsNull(Me.Controls(strField)) Then
rs2!strField = True
end if

But I know the rs2!strField doesn't work as strField is a parameter.

I have tried rs2!(strField)

But it don't work.

Does anyone know how I contruct this line of code as it is doing my help in.

Cheers in advance.

Neemi
 
Thanks but I sorted it out... Just to share with anyone the sysntax to do what I wanted to do is:

rs2.Fields(strField)

Cheers,

Neemi
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top