Why am I getting Runtime Error 13: Type Mismatch?
In a database class I have, i declare that the Connection method should receive a parameter of type string:
Public Sub Connect(sDB As String)
When i go to call that method, i pass a string to it:
Public ActDB As New DatabaseClass
Dim dealToFas As Integer, databaseConnection As String
databaseConnection = "dq"
However, the line "ActDB.Connect (databaseConnection)"
is returning the Runtime Error 13, and I cannot figure out why. Can anyone please point out what is certain to be my stupid mistake?
Thanks in advance