I'm currently stucked in one of my apps. I hope someone could help me. I've searched some books already but just couldn't find the right solution.
I have 4 tables in MS ACCESS
They are all related to on PROVIDER ID
However when I relate two tables, I receive the message that the OBJECT REFERENCE NOT SET TO AN OBJECT.
Here's the code I use
Dim AcConRel As DataRelation = dsMAIN.Relations.Add("AcCon", dsMAIN.Tables("infoACCOUNT").Columns("AcRefNo"), dsMAIN.Tables("infoACCOUNTcontact").Columns("AcRefNo"))
I have 4 tables in MS ACCESS
They are all related to on PROVIDER ID
However when I relate two tables, I receive the message that the OBJECT REFERENCE NOT SET TO AN OBJECT.
Here's the code I use
Dim AcConRel As DataRelation = dsMAIN.Relations.Add("AcCon", dsMAIN.Tables("infoACCOUNT").Columns("AcRefNo"), dsMAIN.Tables("infoACCOUNTcontact").Columns("AcRefNo"))