The constraint cannot be enabled
02 February 2008 Tips  Marek Sienkiewicz
Bubble image
'The constraint cannot be enabled as not all the values have
corresponding parent values.'


Set the constraint in the DataRelation class to false.

ds.Relations.Add("ParentChild", _
ds.Tables("Parent").Columns ("Name"), _
dsTables("Child").Columns("Name"), False)





Please post your comments:

Name

Email
                           

   

Enter the text you see in the box:

Captcha Image