dataset add relation error
From: homer (homer_at_discussions.microsoft.com)
Date: 08/27/04
- Next message: Jerry Pisk: "Re: Updating to MDAC 2.8"
- Previous message: Andy DF: "Updating to MDAC 2.8"
- Messages sorted by: [ date ] [ thread ]
Date: Fri, 27 Aug 2004 09:37:05 -0700
In my VS.net 2003 project, I got an error on the line of code that I try to
build a relationship between two tables.
dsProd.Relations.Add("SegtoCat", dsProd.Tables("Segments").Columns("ID"),_
dsProd.Tables("Catagories").Columns("SegmentID"));
'System.Data.DataSet.Tables' denotes a 'property' where a 'method' was
expected
Both tables have the right data populated, and PK ID in Segments table
points to SegmentID as FK in Catagories table.
Your help is truly appreciated!
- Next message: Jerry Pisk: "Re: Updating to MDAC 2.8"
- Previous message: Andy DF: "Updating to MDAC 2.8"
- Messages sorted by: [ date ] [ thread ]