»
 

Go Back   ResellerRatings Store Ratings > ResellerRatings Forums > Tech Support

Reply
 
LinkBack Thread Tools Display Modes
Old 03-11-2004, 11:47 PM   #1 (permalink)
Registered User
 
Tekk's Avatar
 
Join Date: Oct 2001
Location: SoCal
Posts: 1,122
Tekk is on a distinguished road
Problems with Referential Integrity and VB .NET app

Im working on my project for school where we are developing an application that will work with the Northwind example database that was provided with Access. 2 new tables were added to the db which are PurchaseOrder and PODetail. They have a 1:1 relationship.

My question is that because of the referential integrity, I cannot INSERT any rows into either table because when it looks for a corresponding row in the other table its not there yet so it gives me a NullPointerException.

I have two subs that are handling the insert commands: InsertPODetail(.....) and InsertPurchaseOrder(.....)

Is there a way that I can add the rows with R.I. turned on without getting the exception? Or should I just say screw it and turn it off Heck I had such a bad teacher in my Database class that I didn't learn all this junk so now when I actually use it in another class I cant figure it out....how appropriate!

__________________
Im very explosive right now...BOOM! Very explosive.
Tekk is offline   Reply With Quote
Old 03-12-2004, 08:11 PM   #2 (permalink)
Registered User
 
Tekk's Avatar
 
Join Date: Oct 2001
Location: SoCal
Posts: 1,122
Tekk is on a distinguished road
think i got it....nevermind
__________________
Im very explosive right now...BOOM! Very explosive.
Tekk is offline   Reply With Quote
Reply




Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Most Active Discussions

Recent Discussions

All times are GMT -6. The time now is 02:03 PM.