Hi JaYpee,
Can you tell us what you did till now to do that?
Otherwise maybe our startpoint is to far back.
(Did you already made a dataadapter.update by instance?)
Cor
i am not too very familiar w/ different kinds of connection but i
think what u said is came from the wizard. like
OleDbDataAdapter1.Update(DsAuthors1) or an sql adapter. the source i
am working on is a hard coded source code from 101 example as i have
mentioned from my previous post.
by d way sorry for replying w/ a different thread.
the code from the sample looks something like this. this is my source
code now that come from the sample.
Dim scnnNW As New SqlConnection(strConn)
Dim strSQL As String = _
"SELECT IDNo, LastName, FirstName " & _
"FROM Students"
' A SqlCommand object is used to execute the SQL
commands.
Dim scmd As New SqlCommand(strSQL, scnnNW)
' A SqlDataAdapter uses the SqlCommand object to fill
a DataSet.
sda = New SqlDataAdapter(scmd)
' A SqlCommandBuilder automatically generates the SQL
commands needed
' to update the database later (in the btnSave_Click
event handler).
Dim scb As New SqlCommandBuilder(sda)
' The commands generated by the SqlCommandBuilder are
based on the
' currently set CommandText of the SqlCommand object.
As this will
' be changing to a SQL statement that won't be needed
for an Update
' in the btnSave Click event handler, you can call
GetUpdateCommand
' explicitly to generate the Update command based on
the current
' CommandText property value.
scb.GetUpdateCommand()
' Create a new DataSet and fill its first DataTable.
dsStudentCourse = New DataSet()
sda.Fill(dsStudentCourse, "Students")
' Reset the CommandText to get the Employee orders.
scmd.CommandText = _
"SELECT SchYrSemID, IDNo, SchYr, Sem FROM
SchYrSem"
' Fill the second table in the DataSet.
sda.Fill(dsStudentCourse, "SchYrSem")
' Reset the CommandText to get the Order details.
scmd.CommandText = _
"SELECT SchYrSemCourseID, SchYrSemID,
Course.CourseID, CourseTitle, CourseDesc, Unit, [Hours/Week] FROM
Course INNER JOIN SchYrSemCourseJoin ON Course.CourseID =
SchYrSemCourseJoin.CourseID"
' Fill the fourth table in the DataSet.
sda.Fill(dsStudentCourse, "SchYrSemCourseJoin")
and i don't know how can i update the datagrid now.
thanks if u can help me w/ this problem.