constraint problem

  • Thread starter Thread starter Agnes
  • Start date Start date
A

Agnes

I had declare the keyconstraint.
Dim con_id_rv As ForeignKeyConstraint
con_id_rv = New ForeignKeyConstraint("fk_id",
dtInv.Columns("invno"), dtRv.Columns("invno"))

However, I got one error
Object reference not set to an instance of an object.

Please help.
Thanks a lot
 
Why don't you put a breakpoint where you are creating the constraint, and
make sure all these objects aren't null. This would be the easiest and
fastest way to fix the problem.
 
Back
Top