weismana81
Member
- Joined
- Mar 8, 2005
- Messages
- 10
- Programming Experience
- Beginner
I've been working with vb.net for a little while now, and I've got an ok grasp on things, but I cannot seem to figure out how to manage relational data between tables in an ms access database. I'm sure this is too much to cover in one post, but does anyone know of an article, or an example somewhere that would help? I'd really like to be able to use the visual tools in vb.net, and I've seen familiar things, but I can't figure out how to get things working.
If it helps, all I'm trying to do (for now) is establish a "category-like" setup. For example, "items" is the main table and contains a field for "category". The categories have their own table so the user can set his/her own. Like in access, while the category field in the items table is an ID, at runtime it should display the appropriate category. Idealy the end result will, among other things, let the user filter by category. My problem is that I end up with a number (catID) instead of the category itself. But if I use the category field from the categories table, then the data bound objects from the items table do not respond. While there may be work-arounds for this, what about when the user is adding a new item. I bind the combo box to the catID field in the items table and get a number. But then if I bind it to the category field in the categories table, it doesn't save to the items table.
So that's my problem and like I said, I'm hitting a wall!!! Any direction from anyone is VERY MUCH APPRECIATED!!
If it helps, all I'm trying to do (for now) is establish a "category-like" setup. For example, "items" is the main table and contains a field for "category". The categories have their own table so the user can set his/her own. Like in access, while the category field in the items table is an ID, at runtime it should display the appropriate category. Idealy the end result will, among other things, let the user filter by category. My problem is that I end up with a number (catID) instead of the category itself. But if I use the category field from the categories table, then the data bound objects from the items table do not respond. While there may be work-arounds for this, what about when the user is adding a new item. I bind the combo box to the catID field in the items table and get a number. But then if I bind it to the category field in the categories table, it doesn't save to the items table.
So that's my problem and like I said, I'm hitting a wall!!! Any direction from anyone is VERY MUCH APPRECIATED!!