Displaying data thru a variable

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
 
D

Douglas J. Steele

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

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top