M
momo
Help please
I am getting this error: BC30205: End of statement expected.
Here is the code:
public shared function GetMsAccessOledbConnection(ByVal dbPath As String,
ByVal dbID As String, ByVal dbPassword As String)
Dim dbConn As OleDbConnection
Dim dbConnStr As String.Format("Provider=Microsoft.Jet.OLEDB.4.0;Data
Source={0};User ID={1};Password={2}", dbPath, dbID, dbPassword);
return new OleDbConnection(dbConnStr);
End function
I am getting this error: BC30205: End of statement expected.
Here is the code:
public shared function GetMsAccessOledbConnection(ByVal dbPath As String,
ByVal dbID As String, ByVal dbPassword As String)
Dim dbConn As OleDbConnection
Dim dbConnStr As String.Format("Provider=Microsoft.Jet.OLEDB.4.0;Data
Source={0};User ID={1};Password={2}", dbPath, dbID, dbPassword);
return new OleDbConnection(dbConnStr);
End function