I am running a
select count(*) query from an oracle database. It the count is greater than 0 I carry out further action.
On executing
Set oQt = ActiveSheet.QueryTables.Add( _
Connection:=sConn, _
Destination:=Range("a1"), _
Sql:=rSQL)
oQt.Refresh
I get
COUNT(*)
16
in my active worksheet. Then I would have to read cell A2.
However, is there a way of setting a memory variable to 16 without doing the oQt.Refresh ?
thanks
select count(*) query from an oracle database. It the count is greater than 0 I carry out further action.
On executing
Set oQt = ActiveSheet.QueryTables.Add( _
Connection:=sConn, _
Destination:=Range("a1"), _
Sql:=rSQL)
oQt.Refresh
I get
COUNT(*)
16
in my active worksheet. Then I would have to read cell A2.
However, is there a way of setting a memory variable to 16 without doing the oQt.Refresh ?
thanks