I am getting the following error in my Access 2010 code:
object doesn't support this property or method (438)
Here is my code:
Public Function TestSamples() As Boolean
Pass = True
On Error GoTo Err_TestSamples
Dim Clnt As New clsClient
LoadClientTestData (Clnt) <---Get error message on this line.
Private Sub LoadClientTestData(ByRef Clnt As clsClient) <-- This is the subroutine being called. Both sets of code are in the same module.
clsClient is a Class Module created in Access.
If I avoid the subroutine and put the code that the routine was supposed to do below this point, the class works as expected. I want to be able to put this code in a subroutine so it can be called from multiple sources.
I have searched on the error but have only found the error related to form controls.