Subject: Why am I getting Runtime Error 13: Type Mismatch?
Posted By: dan_thorman Post Date: 1/24/2007 12:55:21 PM
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"
ActDB.Connect (databaseConnection)

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


Reply By: dan_thorman Reply Date: 1/24/2007 1:06:05 PM
Figured it out. As it turns out, the database path i was trying to connect to was returning the error, but this was VB's way of representing a database connection error.


Go to topic 55112

Return to index page 54
Return to index page 53
Return to index page 52
Return to index page 51
Return to index page 50
Return to index page 49
Return to index page 48
Return to index page 47
Return to index page 46
Return to index page 45