hi,
I am using the below code in my excel vba.
I want to check from the program whether the refresh worked correctly. i just want to know whether it pops up error because of invalid username and password. i saw in the link http://msdn.microsoft.com/en-us/library/microsoft.office.interop.excel.odbcconnection.refresh.aspx .![]()
Please Login or Register to view this content.
If the refresh method didnt completed correctly then the method 'refresh' returns false. how can i assign that return value to a boolean variable.
i tried like
it throws the compile error as type mismatch.![]()
Please Login or Register to view this content.
please help me how to check whether refresh method works correctly.
Bookmarks