Hi,
Having struggled to master (or at least get to use) recordsets, and so
retrieve data without using a form, I'm stuck at a point which I feel ought
to be easy.
MsgBox Rs.Myfield (with brackets, without, with ! or .) will produce a
result, so my recordset (rs) is fine.
Now I want to choose the field through a function, so that the field name is
held in a variable, say MyVariable rather than use the fieldname itself. If
MyVariable = Myfield, how do I then get at MyField?
MsgBox Rs. & MyVariable
MyVariable = "[Rs].[" & MyVariable & "]"
MsgBox MyVariable (This produces the " as well!)
I think I have tried all combinations!!!
Thanks in advance