Eng-Tips is the largest engineering community on the Internet

Intelligent Work Forums for Engineering Professionals

  • Congratulations waross on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

VBA not executing Query

Status
Not open for further replies.

Cephus

Mechanical
Apr 14, 2003
7
0
0
US
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.
 
Status
Not open for further replies.
Back
Top