gi11ies
Programmer
- Mar 26, 2002
- 52
Hi
This is probably pretty simple, but any help would be great. I'm trying to insert the user ID of all users in a user table into another table.
My simple select statment gets the users IDs ....
Dim nicConn As OleDbConnection
Dim nicConn1 As String
nicConn1 = ConfigurationSettings.AppSettings("connString1")
nicConn = New OleDbConnection(nicConn1)
Dim nicSQL as String = "select user_id from users"
Dim nicCmd as New OleDbDataAdapter(nicSQL, nicConn)
Dim nicDS As DataSet=New DataSet()
nicCmd.Fill(nicDS,"Users")
From the dataset I want to put each user ID into into the other table. So Im guessing its
For each row in the users dataset
Insert into the table the user ID
Next
If some one could point me in the right direction to do this, it would be great !!!
Gillies
This is probably pretty simple, but any help would be great. I'm trying to insert the user ID of all users in a user table into another table.
My simple select statment gets the users IDs ....
Dim nicConn As OleDbConnection
Dim nicConn1 As String
nicConn1 = ConfigurationSettings.AppSettings("connString1")
nicConn = New OleDbConnection(nicConn1)
Dim nicSQL as String = "select user_id from users"
Dim nicCmd as New OleDbDataAdapter(nicSQL, nicConn)
Dim nicDS As DataSet=New DataSet()
nicCmd.Fill(nicDS,"Users")
From the dataset I want to put each user ID into into the other table. So Im guessing its
For each row in the users dataset
Insert into the table the user ID
Next
If some one could point me in the right direction to do this, it would be great !!!
Gillies