Access Northwind.mdb: Cannot relate Customers to Orders tables
Hi, Using VS2005 Beta 1.040607-1600, I'm trying to relate the Customers and orders table so that the customers table will be in a details format, while the related orders table will be in a datagrid view format. I use the datasource config wizard to draw in Access 2003's Customers and orders tables. Check the .xsd file and see that the tables are related. Expand the customers node in the DataSource frame, looking for Orders node below the last column in Customers node. No orders node! Is there something I should do to make the relationship more explicit. Is there something I should do that's the visual equivalent of setting a configuring a data relation object?
Not sure how to relate the two tables in code. The code snippets I saw at: ms-help://MS.VSCC.v80/MS.MSDNQTR.v80.en/MS.MSDN.v80/MS.VisualStudio.v80.en/dv_raddata/html/89d8a881-8265-41f2-a88b-61311ab06192.htm really did not give me the confidence that I could write the full code to set the relation between the two.
Any suggestions greatly appreciated! Thanks in advance!
Phil
In the datasource frame, isn't the Orders table supposed to appear after the last (i.e., the Fax) node of the customers table. I tried deleting and re-creating the relation in the .xsd file. I tried making another app with a copy of the Northwind database. Northwind's database in Access appears to be uncorrupted. I get no error message. It's just that in the Datasource window I can't get the Orders table to come up as a subnode under the Customer's node. I really wanted this of course so that I could create a form where when you navigated to the next customer, the orders associated with that customer came up in a datagrid. I have the customers table defined in details format and of course have not been able to define the format of the orders table because it does not appear under the Customers node. Of course, I can drag the Orders table to the form but then it appears with no relation to the Customers table. I understood that the Orders table would appear under the Customers node as well as appearing as a top level node and that if you dragged the orders subnode (of the Customers node) to the form (after dragging the Customers table to the form) you would have an automatically created relation without code.
Any help or even a 'It's beyond me!' would be greatly appreciated!
One final question and I'm done. Is there a workaround, visual or in code. That is, I would simply like to have a data navigator, working on the master table and the detail table to be synchronized. If you could point me to some online source. I'm really a newbie when it comes to this stuff and I don't even know where to put code relating the two tables or how to fill the orders tableadapter or how the datarelation object relates to the tableadapter object. I have tried to read the docs, but I think I need one good complete source file to look at in order to get a bird's eye view of the whole thing. So I'm really asking not for answers as much as links to good sites that link a master to detail table entirely in code for VS 2005 Express. Thanks in advance!
Phil