multi key child datarelation

  • Thread starter Thread starter Guest
  • Start date Start date
G

Guest

Hi,
I have a multi-key child and single key parent data relation that works correctly on my computer, but errors with "Object reference not set to an instance of an object." when run on test computers. All computers are on Framework 1.1, but the test computers do not have MS Visual Studio.NET installed. Anyone know what is causing this?
Thank you
Sandy
 
Sandy:

A lot of things could be causing that. Have you isolated the line
number/method etc.
Sandy said:
Hi,
I have a multi-key child and single key parent data relation that works
correctly on my computer, but errors with "Object reference not set to an
instance of an object." when run on test computers. All computers are on
Framework 1.1, but the test computers do not have MS Visual Studio.NET
installed. Anyone know what is causing this?
 
Here's the code
Dim childColumn As DataColum
childColumn = dstCall.Tables(childTableName).Columns(childColumnName)

I get the object reference error on the line childColumn = dstCall.Tables(childTableName).Columns(childColumnName)
 
Double check the spellings of everything first. Whatever you think the
columname should be, do a
Debug.Assert(dstCall.Tables(childTableName.Columns(childColumnName) =
WhatYouTHinkItShould)
and make sure it passes. Also make sure that dstCall has been initialized
with "new", as has the table and the column.
 
Back
Top