471,350 Members | 1,727 Online
Bytes | Software Development & Data Engineering Community
Post +

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 471,350 software developers and data experts.

System.ArgumentNullException: 'column' argument cannot be null

The following error occurs when I want to make a relation between two tables : "System.ArgumentNullException: 'column' argument cannot be null" .

The code where appears the exception:
ds.Relations.Add("ProjectToTestcase", _
ds.Tables("projects").Columns("projectID"), _

The name of the columns from the code is the same with the names of the columns from DB.

Thanks for help!
May 15 '07 #1
1 10523
4,871 Expert 4TB
Have you tried using the column numbers instead? Also check the tables by displaying them first. HTH.
May 15 '07 #2

Post your reply

Sign in to post your reply or Sign up for a free account.

Similar topics

9 posts views Thread by Penn Markham | last post: by
3 posts views Thread by davesNotHere | last post: by
2 posts views Thread by Tom C | last post: by
5 posts views Thread by Henry Stock | last post: by
reply views Thread by XIAOLAOHU | last post: by

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.