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 TouchToneTommy on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

System.ArgumentException: Can't create a child list for field tblTechn

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 = cnString
ds.Clear()

daCustomers.Fill(ds)
daJobs.Fill(ds)
daProposal.Fill(ds)
daTechnicians.Fill(ds)

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

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



Any help is appreciated. Thank!
 
Try forum796. It's the VB.Net forum (this is VB5/6 for us oldies)

________________________________________________________________
If you want to get the best response to a question, please check out FAQ222-2244 first

'People who live in windowed environments shouldn't cast pointers.'
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top