Thanks for the reply. strFieldName is a variable name. I did try the code
strFieldText = rstStudentData(Me(strFieldName))
and now the error message says "Run-time error '2465': Microsoft Access can't find the field 'Parole Officer' referred to in you expression". So, at least it is...
I tried the following code:
[ strFieldText = rstStudentData(Me![strFieldName]) ]
and now I get the following error message: "Run-time error '2465': Microsoft Access can't find the field "strFieldName" referred to in you expression".
It looks like Access still thinks strFieldName is the...
Using Access 2000, what is the correct syntax for using a variable to reference a field name when trying to read/write text in that particular field in a DAO recordset? For example, the code
[ strData = rstSample![My Field] ]
returns the contents of field [My Field] from recordset Sample...
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.