PC Review


Reply
Thread Tools Rate Thread

Dataset updating.

 
 
Test
Guest
Posts: n/a
 
      15th Mar 2004
Using Access 2002 / .Net.

I need to update a database through dataadapter.update(dataset).

The problem is one of the tables had two foreign keys , linking to
autonumbers in its parents tables.

So everytime I try to update...i get the error 'Cannot find a record
relating to 'Table' etc'.

Any Ideas? This has me really confused.



-----------

Also the adapter is created in code..not through the gui....so it doesnt
seem to trap its '.rowupdated events'




 
Reply With Quote
 
 
 
 
William Ryan eMVP
Guest
Posts: n/a
 
      15th Mar 2004
Check out Bill Vaughn's Article on "Managing an @@IDentity Crisis" at
www.betav.com -> Articles -> MSDN Magazine. The article targets SQL Server
but the prinicple will be identical.

HTH<

Bill
"Test" <(E-Mail Removed)> wrote in message
news:(E-Mail Removed)...
> Using Access 2002 / .Net.
>
> I need to update a database through dataadapter.update(dataset).
>
> The problem is one of the tables had two foreign keys , linking to
> autonumbers in its parents tables.
>
> So everytime I try to update...i get the error 'Cannot find a record
> relating to 'Table' etc'.
>
> Any Ideas? This has me really confused.
>
>
>
> -----------
>
> Also the adapter is created in code..not through the gui....so it doesnt
> seem to trap its '.rowupdated events'
>
>
>
>



 
Reply With Quote
Reply

Thread Tools
Rate This Thread
Rate This Thread:

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 Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Updating Dataset from XML Bill Microsoft ADO .NET 4 3rd Nov 2004 02:51 PM
updating a dataset =?Utf-8?B?Uko=?= Microsoft Dot NET Framework Forms 1 9th Oct 2004 08:54 PM
Updating Dataset Microsoft ADO .NET 6 20th Apr 2004 04:53 PM
updating dataset from aspx not updating? Rich Microsoft ASP .NET 2 24th Mar 2004 03:01 AM
Problem updating existing typed dataset from Generate Dataset designer Eric Kennedy Microsoft ADO .NET 0 29th Aug 2003 05:55 PM


Features
 

Advertising
 

Newsgroups
 


All times are GMT +1. The time now is 06:13 PM.