recordset field name variable

G

Guest

Thanks for taking the time to read my question.

how do I do

dim rst as Recordset ... and so on

rst!VariableValueHere

So that I can make VariableValueHere any field name I want.

Thanks,

Brad
 
R

ruralguy via AccessMonster.com

From VBA help:

To refer to a Field object in a collection by its ordinal number or by its
Name property setting, use any of the following syntax forms:

Fields(0)

Fields("name")

Fields![name]
 
G

Guest

Aaaahhh yes, that is what it is. I couldn't remember what it was.

Thanks!

Brad

ruralguy via AccessMonster.com said:
From VBA help:

To refer to a Field object in a collection by its ordinal number or by its
Name property setting, use any of the following syntax forms:

Fields(0)

Fields("name")

Fields![name]


Thanks for taking the time to read my question.

how do I do

dim rst as Recordset ... and so on

rst!VariableValueHere

So that I can make VariableValueHere any field name I want.

Thanks,

Brad

--
HTH - RuralGuy (RG for short) acXP WinXP Pro
Please post back to this forum so all may benefit.

Message posted via AccessMonster.com
 

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