DimMeAsLost
Active member
- Joined
- Jan 31, 2010
- Messages
- 29
- Programming Experience
- 1-3
I have an Access 2007 app that I created that we use to make our material purchase requests from. Basically there is a materials table that holds our material information, costs, labor units, and 3 levels of catagories. I use 3 cascading combos on a pop up form with a list box that the user drills down then adds to the request form via an append query. We have been using this for about 4 years now.
I am in the middle of converting another app to VB.NET 2008 and SQL 2005 Full (database with be on server/ client will be on local machine). Anyway, I am being asked to add this material request into this application and add a treeview so it will be easier for the user to drill down. Our material database has over 5000 records. I have never used a treeview control and all examples I have seen do not seem to completely understand.
I have 2 questions:
1. Do I need to create a separate table that lists my catagories and and have the material database relationship to that table? I need help in rationalizing the normalization process so that my second question will be properly be setup (treeview control) but doesnt belong in this thread, but you do need to understand what I am trying to accomplish.
2. How can I set up the treeview control to properly show the items in the Root>Child>GChild of the database structure? Do I do a recursive method (which I am not sure how to do, or should I create the nodes manually and use TAGS as a parameter for a stored procedure. (Note: Server will be located in the same building as the clients, so no remote desktop or bandwith issues to concern with)
I want to thank everyone in advance for any help and guidance you can provide me.
I am in the middle of converting another app to VB.NET 2008 and SQL 2005 Full (database with be on server/ client will be on local machine). Anyway, I am being asked to add this material request into this application and add a treeview so it will be easier for the user to drill down. Our material database has over 5000 records. I have never used a treeview control and all examples I have seen do not seem to completely understand.
I have 2 questions:
1. Do I need to create a separate table that lists my catagories and and have the material database relationship to that table? I need help in rationalizing the normalization process so that my second question will be properly be setup (treeview control) but doesnt belong in this thread, but you do need to understand what I am trying to accomplish.
2. How can I set up the treeview control to properly show the items in the Root>Child>GChild of the database structure? Do I do a recursive method (which I am not sure how to do, or should I create the nodes manually and use TAGS as a parameter for a stored procedure. (Note: Server will be located in the same building as the clients, so no remote desktop or bandwith issues to concern with)
I want to thank everyone in advance for any help and guidance you can provide me.