Re: How do I update child keys when I update their string data?

From: W.G. Ryan [eMVP] (WilliamRyanATGmailDotcom)
Date: 09/07/04


Date: Tue, 7 Sep 2004 19:12:35 -0400

If I understand you correctly, you don't want to use joins. Instead, pull
over two separate queries and link them with a DataRelation.
http://www.knowdotnet.com/articles/datarelation.html
Then you can call Update on each table/dataSet respectively.
"Wade" <searinggaspain@hotmail.com> wrote in message
news:21e5fd27.0409071103.379ad81d@posting.google.com...
> I'm new to VB .NET and I've made an Access database with several
> one-to-many relationships. I want to display the data in a datagrid
> and give users the ability to edit the database. It's simple enough
> to import the database into a DataSet and display the string data that
> the keys point to using SQL INNER JOIN statements, but once the data
> has been updated, how do I use the new string data values to update
> the child keys that need to be returned to the database? Do I need to
> import the parent tables in their entirety and make a relational
> dataset? If anyone could point me to some example code that would be
> very helpful.



Relevant Pages

  • Re: about insert data....
    ... Since you did not supply the database you are using I will supply an example using dynamic SQL. ... I assume that the three fields are string data. ... The strings are surrounded by apostrophes. ...
    (microsoft.public.vb.database.ado)
  • CLongBinary data truncation
    ... I am using ODBC with mfc. ... I have a field varbinary in database, ... 8000 bytes it gives me "String data, ... SetFieldDirty; ...
    (microsoft.public.vc.database)
  • Inserting a backslash
    ... I am trying to insert string data into my MySQL database. ... string data has a backslash as a character. ...
    (comp.lang.java.databases)
  • How do I update child keys when I update their string data?
    ... I'm new to VB .NET and I've made an Access database with several ... I want to display the data in a datagrid ... how do I use the new string data values to update ... the child keys that need to be returned to the database? ...
    (microsoft.public.dotnet.framework.adonet)
  • Re: DataRelation
    ... well datarelations aren't really that useful if you want your database ... if the customer table has been populated but the ... > DataRow will return an empty array. ... >> When you set up a DataRelation, does the data need to already be present ...
    (microsoft.public.dotnet.framework.adonet)