Anyone know if it's possible to call the .execute method on a connection object and have it put the resulting value into a variable, instead of a recordset???
The SQL query that I have is a little different than most, and instead of returning a large recordset, the result is one number between 0 and 1 (i.e. -- .87)
What I've had to do thus far is make a recordset, and then open it regularly like this:
rs.open sql, con, 1, 1
and then just access the single value like so:
rs("topBox"
what I'd really like to do to save myself from having to create an object just to get one silly little value is something like this:
dim topBox
topBox = con.execute (sql)
so that the return value goes straight into the variable and bypasses the creation of a recordset --
Anyone know how to do that?
thx
Paul Prewett
The SQL query that I have is a little different than most, and instead of returning a large recordset, the result is one number between 0 and 1 (i.e. -- .87)
What I've had to do thus far is make a recordset, and then open it regularly like this:
rs.open sql, con, 1, 1
and then just access the single value like so:
rs("topBox"
what I'd really like to do to save myself from having to create an object just to get one silly little value is something like this:
dim topBox
topBox = con.execute (sql)
so that the return value goes straight into the variable and bypasses the creation of a recordset --
Anyone know how to do that?
thx
Paul Prewett