Hi Manuel,
You are almost imposible to help, you drop everywhere your messages.
I said to you that it is better to stay in the original thread, than there
can be looked back what was your problem. And to add questions to messages
like everybody else do so it is showed that it is a question.
Now for everybody else this looks as an asnwer to the qeustion from Agnes/
Your answer
da.fill(ds, "dt1") ' is what I think is the most easy one.
And you can make a choise to make two dataadapters or to do everytime a new
commandbuilder before the update).
I think that make one time two dataadapters will be the most efficient when
you are updating. (Without updating you can go for one).
I hope this helps?
Cor
"Manuel Canas" <(E-Mail Removed)> schreef in bericht
news:K2mIc.21433$2i3.11511@clgrps12...
> Hey, great coding man.
>
> Need some more help from you guy, if you don't mind.
>
> Now I'm trying to add a second table to my dataset, this is the code I've
> come up with.
> Dim SqlString As String = "SELECT * FROM tb_Test2"
>
> da = New SqlDataAdapter(SqlString, ConnectionString)
>
> da.Fill(ds)
>
> Dim dt As DataTable = ds.Tables(1) Is this the Right way to add another
> table to the dataset??? it says that it cannot find the table 1
>
> dv = New DataView(dt)
>
> dv.Sort = "ID"
>
> cmaBilling = DirectCast(BindingContext(dv), CurrencyManager)
>
> Dim cmb As New SqlCommandBuilder(da)
>
> and then the binding part follows.
>
> Thanks bud for your great help.
> Manuel
>
>
> "Agnes" <(E-Mail Removed)> wrote in message
> news:(E-Mail Removed)...
> > Sorry for my question again.
> > My form got the previous , next , top,bottom button and allow the user
to
> > move the records . Now, the table got 500 records, I need to do a
features
> > for the user to input the 300th records(e.g invoiceno is 00301) and
> search
> > it, and then move to 301,302, or move back to 299,298.
> >
> > I don't know how to do , Thanks in advance.
> >
> >
>
>
|