I have a recordset and I need to refer to a field using a variable e.g instead of rst.Address I have rst(variable). However the variable is being taken out of an array as a string so it looks like "address". The code therefore fails looking for rst("address"). How can I adjust this reference so it will be correct.
Similarly when I try to assign a value to a field e.g rst(datestamp)= date() - again this value is coming as a string so the code reads it as "date()". The quotes are not part of a string that I can strip off using right or left function, they just denote a string.
In short how can I convert a string value into a variable?
There must be something simple I'm missing!
Thanks
Similarly when I try to assign a value to a field e.g rst(datestamp)= date() - again this value is coming as a string so the code reads it as "date()". The quotes are not part of a string that I can strip off using right or left function, they just denote a string.
In short how can I convert a string value into a variable?
There must be something simple I'm missing!
Thanks