Displaying data thru a variable

  • Thread starter Thread starter Maracay
  • Start date Start date
M

Maracay

Hi Guys,

How can I do this, I have a variable (txtFName) that contain the name of a
table's field (FirstName), what I want is to display the value of FirstName
(Mark Vargas) using txtFName. How can I do this?

I will appreciate any help.

Thanks
 
Assuming you've opened a recordset (call it rs) that points to the table,
you can use rs.Fields(txtFName)
 
Back
Top