objDataSet.Relations.Add("CustomerTable2AccountTable", _
objDataSet.Tables("CustomerTable").Columns("CustomerID"), _
objDataSet.Tables("AccountTable").Columns("CustomerID"))

getting this error

'column' argument cannot be null. Parameter name: column

Column objDataSet.Tables("CustomerTable").Columns("CustomerID") must have primary key constraints.

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.