|
-
Jun 28th, 2004, 10:28 PM
#1
Thread Starter
Lively Member
can anyone help me with this?
hi everyone!
Please help me with this...I'm trying to create a relation (master/detail) and got a code from MSDN. When I ran the program, this error appeared:
An unhandled exception of type 'System.NullReferenceException' occurred in Quote.exe
Additional information: Object reference not set to an instance of an object.
This highlights my code in declaring the relationship...
ds.Relations.Add("DocTran", ds.Tables!Qoutedoc.Columns!Reference, ds.Tables!QuoteTran.Columns!Reference)
What's wrong with my code? What did i miss out? Please help me! Thanks in advance.
-
Jun 29th, 2004, 12:22 AM
#2
Registered User
did you instantiate your dataset?
-
Jun 29th, 2004, 06:09 AM
#3
Hyperactive Member
It is nearly an impossible task to help you "Fix your code" without being able to see it. Please post your code and we can probably take a peek and see what's wrong
-
Jun 29th, 2004, 10:19 PM
#4
Thread Starter
Lively Member
got it!
thanks guys! you're the best!
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|