Jump to content
Xtreme .Net Talk

Recommended Posts

Posted

Hi, I have am having a problem updating multiple rows of a dataset.

 

I am using Visula Basic.net; OleDB connection to an Access database.

 

The table has four columns: Code, Priv_lvl, Prim_Key(autoincrement primary key), Account

 

I run a search to fill at dataset & it retrieves two or more rows from the table.

 

I modify the datarows with the needed data

I set the parameters and commands

I then run the update command.

 

What happens is that all of the rows get updated with the last rows data.

 

I am wondering if I have to allocate the correct data to the parameters or not? If I have to, how do I create an array of the same named parameter?

 

The code would be difficult to post here as I have it spread accross two modules.

 

Can some one give me some advice or point me to a tutorial or complete sample of how to update multiple rows.

 

Thank you

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...