Wait, I think I know what the cause is. He uses Dim to declare sResp in his module. I'm not entirely sure but I believe Dim defaults to Private which means his Form code is not actually seeing sResp in the module but is auto-defining a different one which will default to Variant as it's type. If he places Option Explicit at the top of his Form code, the compiler should complain about sResp not being defined.
@Op
To fix, change:-
ToCode:Dim sResp As sRespData
Code:Public sResp As sRespData




Reply With Quote
