Hi all,
Kind of a novice here in vb but here is what I am trying to do. I have a child table of say, sales territories, that I want to assign to sales reps. Sales reps can have multiple territories but territories cannot be owned by more than one sales rep at the time. And I want to be able to view the distribution of territories at any time. So I have a parent table of sales reps and a child table of sales territories.
I created a form for the reps and a subform to display any territories assigned to the reps. But I am having trouble assigning new territories or un-assigning territories.
If I delete the territory record from the subform, that deletes the entire record from the territory table, where I only want to make it unassigned at the point so I can assign it to a different rep.
To assign a territory I tried to create a combo box to display all the territories so I can pick one I want to assign to the given rep. But that doesn't seem to work as well. I get an error when I try to pick a territory from the combo box.
It seems to me this is a fairly common inventory puzzle that I just can't seem to figure out.
Kind of a novice here in vb but here is what I am trying to do. I have a child table of say, sales territories, that I want to assign to sales reps. Sales reps can have multiple territories but territories cannot be owned by more than one sales rep at the time. And I want to be able to view the distribution of territories at any time. So I have a parent table of sales reps and a child table of sales territories.
I created a form for the reps and a subform to display any territories assigned to the reps. But I am having trouble assigning new territories or un-assigning territories.
If I delete the territory record from the subform, that deletes the entire record from the territory table, where I only want to make it unassigned at the point so I can assign it to a different rep.
To assign a territory I tried to create a combo box to display all the territories so I can pick one I want to assign to the given rep. But that doesn't seem to work as well. I get an error when I try to pick a territory from the combo box.
It seems to me this is a fairly common inventory puzzle that I just can't seem to figure out.