Hi Everyone
I am attemting to access the fields in a recordset using a field name derived dynamically, i.e. along the lines of :
dim somevar as string
.
.
.
rs.fields(somevar) or rs!somevar
This obviously doesn't work, as the methods seem to expect literal values rather than dynamic for field names. Has anyone any ideas, or am I missing something here.
Thanks in advance X-)
Malcolm.
I am attemting to access the fields in a recordset using a field name derived dynamically, i.e. along the lines of :
dim somevar as string
.
.
.
rs.fields(somevar) or rs!somevar
This obviously doesn't work, as the methods seem to expect literal values rather than dynamic for field names. Has anyone any ideas, or am I missing something here.
Thanks in advance X-)
Malcolm.