CJ,
It is an AS/400 database that I am connecting into via ODBC. I look at
the data in Access and everything is the right length. I am not sure if
there is something going on when I populate my dataset wherein it is
trimming trailing spaces when I do a .Fill or not. The following is the
code I am using:
Dim mOLEDBCommand As OleDb.OleDbCommand = New OleDb.OleDbCommand(sSQL,
mRemoteConnection)
mOLEDBCommand.CommandTimeout = 60
'issue the SELECT command via SQLAdapter
Dim mOLEDBAdapter As OleDb.OleDbDataAdapter = New
OleDb.OleDbDataAdapter mOLEDBAdapter.SelectCommand = mOLEDBCommand
'establish connection to remote database
mRemoteConnection.Open()
mOLEDBAdapter.Fill(dsRemoteDataset, sRemoteEDIPF)
'close the connection
mRemoteConnection.Close()
Dim sData As String
sData =
dsRemoteDataset.Tables(sRemoteEDIPF).Rows(EDIIndexPos).Item("Data")
When I do a count of sData, the field has been trimmed.
I appreciate your help and welcome any further suggestions since this
has got me stumped.
*** Sent via Developersdex
http://www.developersdex.com ***
Don't just participate in USENET...get rewarded for it!