This is weird. I tried this on coworker computer and it runs beautifully.
So, I will check what are the differences. However, here are the answers:
I cannot explain how it worked out to be this way, but I do not have Microsoft Office 14.0 Access database engine library on the list. If I new in which dll file this library is I could try finding it and manually referencing it. But Access show only small part of that path and I do not know the file name.
The problem happen in the ShowUserRosterMultipleUsersLocal and howUserRosterMultipleUsersRemote functions at cn.Open command. I have tried replacing 'cn.Provider = CurrentProject.Connection.Provider' command with 'cn.Provider = "Provider=Microsoft.ACE.OLEDB.12.0' and it did not help because 'CurrentProject.Connection.Provider' returns 'Microsoft.ACE.OLEDB.12.0'. From the above it does look likes the problem is with my Access installation. I will try to work this side out.
Thanks for the help.
So, I will check what are the differences. However, here are the answers:
I cannot explain how it worked out to be this way, but I do not have Microsoft Office 14.0 Access database engine library on the list. If I new in which dll file this library is I could try finding it and manually referencing it. But Access show only small part of that path and I do not know the file name.
The problem happen in the ShowUserRosterMultipleUsersLocal and howUserRosterMultipleUsersRemote functions at cn.Open command. I have tried replacing 'cn.Provider = CurrentProject.Connection.Provider' command with 'cn.Provider = "Provider=Microsoft.ACE.OLEDB.12.0' and it did not help because 'CurrentProject.Connection.Provider' returns 'Microsoft.ACE.OLEDB.12.0'. From the above it does look likes the problem is with my Access installation. I will try to work this side out.
Thanks for the help.