Cephus
Mechanical
- Apr 14, 2003
- 7
I am using a querytable.refresh command to refresh the data in a column. the data is being transferrred from a DAQ application and being placed into the column each time the query is refreshed. I am then picking the last value in the list and using it as a value in another table. I wrote the code and it works great standalone, but when I try to execute the subroutine from within a loop Excel is only executing the Query once and using that value each time the last value is called for. The code executes steps before and after the query statement but not the query. Do i need to close the query somehow? Any advice is appreciated.