Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations cowski on being selected by the Eng-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
Joined
Apr 14, 2003
Messages
7
Location
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.

Part and Inventory Search

Sponsor

Back
Top