R
ReidarT
I use a dataview to view records from an sql-database in a windows-form.
When I use a select statement from a table like SELECT * FROM Table1 it
works ok.
objDataAdapter.Fill(objDataSet, "Table1")
I fill the field in the form with
txtFieldName.DataBindings.Add("Text", objDataView, "FieldName")
When I change the select-statement to get fields from 2 or more tables like
SELECT Table1.*, Table2.Field2, Table2.Field3 FROM Table1 LEFT OUTER
JOIN....
it fails and says
An unhandled exception of type 'System.Data.SqlClient.SqlException' occurred
in system.data.dll
regards
reidarT
When I use a select statement from a table like SELECT * FROM Table1 it
works ok.
objDataAdapter.Fill(objDataSet, "Table1")
I fill the field in the form with
txtFieldName.DataBindings.Add("Text", objDataView, "FieldName")
When I change the select-statement to get fields from 2 or more tables like
SELECT Table1.*, Table2.Field2, Table2.Field3 FROM Table1 LEFT OUTER
JOIN....
it fails and says
An unhandled exception of type 'System.Data.SqlClient.SqlException' occurred
in system.data.dll
regards
reidarT