JesseH
Active member
First, let me apologize for the level of the question. I have tried desperately to solve it on my own without success. I am teaching myself VBDotNet. The problem is accessing the fields in the ODBC file. The name of the field I am trying to access is IDESC the file is IIML01. I believe that the select statement is correct because I checked it out in MS Access using a pass thru query. All I am trying to do is move the contents of IDESC to Me.txtDesc.Text
Can someone give me the construct to move the contents of IDESC to Me.txtDesc. I rather not use field numbers because they are too rigid.
In any case, thanks for the help.
OdbcDataAdapter1.SelectCommand.CommandText = _
"select IDESC from BPCSFV60.IIML01 where " & _
"BPCSFV60.IIML01.IProd = '" & Trim(txtPartNo.Text) & "' "
DataSet11.EnforceConstraints = False
OdbcDataAdapter1.Fill(DataSet11)
Dim IIMData As DataTable = DataSet11.Tables("IIML01")
Me.txtDesc.Text = Convert.ToString(IIMData.Columns(1))<=======Problem
Can someone give me the construct to move the contents of IDESC to Me.txtDesc. I rather not use field numbers because they are too rigid.
In any case, thanks for the help.
OdbcDataAdapter1.SelectCommand.CommandText = _
"select IDESC from BPCSFV60.IIML01 where " & _
"BPCSFV60.IIML01.IProd = '" & Trim(txtPartNo.Text) & "' "
DataSet11.EnforceConstraints = False
OdbcDataAdapter1.Fill(DataSet11)
Dim IIMData As DataTable = DataSet11.Tables("IIML01")
Me.txtDesc.Text = Convert.ToString(IIMData.Columns(1))<=======Problem