Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Chriss Miller on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Im using vb.net I get the error

Status
Not open for further replies.

mrharb

Programmer
Jul 31, 2003
2
US
Im using vb.net

I get the error
System.ArgumentException: Can't create a child list for field tblTechnician.

My code is as follows

Dim cn As New OleDb.OleDbConnection()
Dim daTechnicians As New OleDb.OleDbDataAdapter("SELECT * FROM tblTechnician", cn)
Dim ds As New Data.DataSet()
Dim bmb As BindingManagerBase



Sub Init()
cn.ConnectionString = "Provider=Microsoft.Jet.OLEDB.4.0;Data Source=c:\ValueServiceInc.mdb"
ds.Clear()

daTechnicians.Fill(ds)

TextBox1.DataBindings.Add("Text", ds, "tblTechnician.TechDisplayName")
bmb = Me.BindingContext(ds)

bmb.Position = bmb.Count
bmb.Position = 0
End Sub

The program runs into the error on line
TextBox1.DataBindings.Add("Text", ds, "tblTechnician.TechDisplayName")

Any help is appreciated. Thank!
 
Hi

Try

Code:
TextBox1.DataBindings.Add("Text", ds, "TechDisplayName")

Regards
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top