View Single Post
  #8 (permalink)  
Old 12-01-2008, 8:28 PM
penno90 penno90 is offline
VB.NET Forum Newbie
.NET Framework: .NET 3.5 (VS 2008)
 
Join Date: Oct 2008
Posts: 12
Reputation: 20
penno90 is on a distinguished programming path ahead
Default

Both tables have defined primary keys using autonumbers.

Followed the link in your signature cjard. i went through the code for 'Walkthrough: Saving Data to a Database (Multiple Tables)' making appropriate changes for my code. Still the same problem. Interestingly enough at the bottom of this walkthrough, someone has posted ...

Quote:
Adding a customer and order at the same time is giving me an error. A message pops up that complains about a foreign key constraint. This occurs even though the code above has the customer changes taking place before adding orders.

Unfortunately still no solution though??
Reply With Quote