471,337 Members | 1,407 Online
Bytes | Software Development & Data Engineering Community
Post +

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 471,337 software developers and data experts.

updating database

ht
I have a problem with updateing database.
I fill dataset on form load.
Me.JobDA.Update(KnjiznicaDS, "T_Job")
This line throws error.

if anyone can help I would be grateful
Thanx
The code with witch i fill records:
Private Sub ucitaj()

' definiranje, unos fileova

Dim dir As DirectoryInfo = New DirectoryInfo(Me.Label1.Text)

Dim diar As IO.FileInfo() = dir.GetFiles("*.*")

Dim dra As IO.FileInfo

Dim lokacija As String

lokacija = Label1.Text

'Definiranje Datatable

Dim Topis As DataTable = KnjiznicaDS.T_opis

Dim NewRowO As DataRow

'Punjenje dataseta sa fileovima

For Each dra In diar

NewRowO = KnjiznicaDS.Tables("T_opis").NewRow()

NewRowO("ID_Job") = Me.Label2.Text

NewRowO("Lokacija_dat") = lokacija

NewRowO("Naziv_dat") = dra

Topis.Rows.Add(NewRowO)

Me.BindingContext(KnjiznicaDS, "T_job").Position =
Me.BindingContext(KnjiznicaDS, "T_job").Count - 1

Next
Jul 21 '05 #1
0 838

This discussion thread is closed

Replies have been disabled for this discussion.

Similar topics

11 posts views Thread by Jason | last post: by
3 posts views Thread by Bucko | last post: by
5 posts views Thread by junglist | last post: by
2 posts views Thread by Alexey.Murin | last post: by
4 posts views Thread by Geoff | last post: by
reply views Thread by rosydwin | last post: by

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.