Results 1 to 4 of 4

Thread: can anyone help me with this?

  1. #1

    Thread Starter
    Lively Member
    Join Date
    Jun 2004
    Location
    Philippines
    Posts
    125

    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.

  2. #2
    Registered User LoNeR's Avatar
    Join Date
    Jun 2004
    Location
    Heliom Prime
    Posts
    20
    did you instantiate your dataset?
    VB Code:
    1. dim ds as new DataSet()

  3. #3
    Hyperactive Member CyberHawke's Avatar
    Join Date
    May 2004
    Location
    Washington DC
    Posts
    477
    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

  4. #4

    Thread Starter
    Lively Member
    Join Date
    Jun 2004
    Location
    Philippines
    Posts
    125
    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
  •  



Click Here to Expand Forum to Full Width