C
CBT
I am trying to connect to an AS400. I can see the files in my Data
Connections, but the following code is generating this message:
"Comma, ')', or a valid expression continuation expected". The code
is:
Dim objConnection As New OleDb.OleDbConnection( _
"Provider=MSDASQL.1;Persist Security Info=False;User ID=abc;Data
Source=MyAS400;Extended Properties="DSN=MyAS400;UID=abc;";Initial
Catalog=S10497HM")
The problem is showing up at the "DSN" portion of the code.
Does anyone know what is causing this? Thanks!
Connections, but the following code is generating this message:
"Comma, ')', or a valid expression continuation expected". The code
is:
Dim objConnection As New OleDb.OleDbConnection( _
"Provider=MSDASQL.1;Persist Security Info=False;User ID=abc;Data
Source=MyAS400;Extended Properties="DSN=MyAS400;UID=abc;";Initial
Catalog=S10497HM")
The problem is showing up at the "DSN" portion of the code.
Does anyone know what is causing this? Thanks!