Excel Querytables

R

Richard Ohl

Hi,
I need some help with Querytables. I've written some code to put the results
of a query (stored procedure, called with different parameters) into an
excel sheet.
Now, that works fine, and my querytableobject.ResultRange.Rows.Count gives
the correct number of results (count = 4 if 4 results are displayed).
However, if the resultset is empty, the count is 2.
What could I check to get the correct number of results? Running the same
query in Query Analyser or in Microsoft Query displays the (correct) empty
resultset, and nothing more. NOCOUNT is set to ON in the procedure.

I'd greatly appreciate any tipps.
Kind regards,
Richard
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top