Hello,
I am trying to run a vba code after a query has been refreshed. My query code does work, but I'd like to tell the user that the query update is successful or failed.
My query update works:
I know the best solution is the .AfterRefresh command, but I can't seem to get it to work. I read the Microsoft areticle, but I just can't understand what I need to do with it or how.
.AfterRefresh Microsoft article
How do I call the AfterRefresh code?
Thanks,
Mike
I am trying to run a vba code after a query has been refreshed. My query code does work, but I'd like to tell the user that the query update is successful or failed.
My query update works:
Code:
ActiveWorkbook.Connections("Query - part_structure_ref_doc_table").Refresh
I know the best solution is the .AfterRefresh command, but I can't seem to get it to work. I read the Microsoft areticle, but I just can't understand what I need to do with it or how.
.AfterRefresh Microsoft article
How do I call the AfterRefresh code?
Thanks,
Mike