Hi, does anyone know how to view what field names are available in a recordset, ie. I am trying to access the sysdate from the following query:
SQLstring = "select trunc(sysdate) from dual"
I then execute this SQL using an ado connection to an Oracle DB. What I want to do now is read the result into a public var, but when I try to reference the field with:
myvar = RS.fields!sysdate
but I get "the item cannot be found in the collection" when hovering over the code in question.
I think it's got to be down to the retrieval of sysdate from dual although SQL plus display the fieldname as (trunc)sysdate. Any ideas.
Cheers.
SQLstring = "select trunc(sysdate) from dual"
I then execute this SQL using an ado connection to an Oracle DB. What I want to do now is read the result into a public var, but when I try to reference the field with:
myvar = RS.fields!sysdate
but I get "the item cannot be found in the collection" when hovering over the code in question.
I think it's got to be down to the retrieval of sysdate from dual although SQL plus display the fieldname as (trunc)sysdate. Any ideas.
Cheers.