I am currently working on VB6.0 application that uses MS Jet to connect to Access DB. I need to be modify the code in order to make it talk to ODBC DB in stead, could someone send me a sample code please.
this is the current code that i have to modify.
Public Function GetDBConn() As String
Dim buffer As String
buffer = "Provider = Microsoft.Jet.OLEDB.4.0;Data Source = "
buffer = buffer + gNetFromPath + "AutoWeighData2.mdb;"
GetDBConn = buffer
End Function
I thank you all in advance.
this is the current code that i have to modify.
Public Function GetDBConn() As String
Dim buffer As String
buffer = "Provider = Microsoft.Jet.OLEDB.4.0;Data Source = "
buffer = buffer + gNetFromPath + "AutoWeighData2.mdb;"
GetDBConn = buffer
End Function
I thank you all in advance.