Hi I dont know what is wrong here.
I allways got this error message:
Here is my code:
if I disable last row (DSOpisDM1.Relations.Add ...) then the program runs perfectly OK. Datasets are filled . . .
What am I doing wrong.
With this relation I want that only specific rows in x_dodatnaZnanja are displayed....
tx
matej
I allways got this error message:
An unhandled exception of type System.ArgumentException occurred in system.data.dll
Additional information: This constraint cannot be enabled as not all values have corresponding parent values.
Here is my code:
Code:
OleDbConnection2.ConnectionString = sConnect
OleDbDataAdapter1.Fill(Me.DsOpisDM1, "opisDM")
Me.daZahtevanaZnanja.Fill(Me.DsOpisDM1, "x_dodatnaZnanja")
DsOpisDM1.Relations.Add("relation", DsOpisDM1.Tables("opisDM").Columns("id"), DsOpisDM1.Tables("x_dodatnaZnanja").Columns("id_opisDM"))
if I disable last row (DSOpisDM1.Relations.Add ...) then the program runs perfectly OK. Datasets are filled . . .
What am I doing wrong.
With this relation I want that only specific rows in x_dodatnaZnanja are displayed....
tx
matej