UnsolvedCoding
Technical User
I am stumbling around with this and I think its simply from not having done it for so long.
I have code that runs in SQL and will return the number of new rows that were loaded into the table, however I want to populate the count of new rows into a cell in Excel.
This code is used to show the count in SQL
Set @UPload_Count = @@rowcount
Select @Upload_Count
How do I open the record set in Excel to return the variable?
Would this work?
Range("O34").Value = oRs("@Upload_Count")
I have code that runs in SQL and will return the number of new rows that were loaded into the table, however I want to populate the count of new rows into a cell in Excel.
This code is used to show the count in SQL
Set @UPload_Count = @@rowcount
Select @Upload_Count
How do I open the record set in Excel to return the variable?
Would this work?
Range("O34").Value = oRs("@Upload_Count")