L
Lee Zard via AccessMonster.com
I have an unbound form with a combo box of Items built using (SELECT Items.
ItemID, Items.Desc FROM Items ORDER BY Items.ItemID) in the row source
property
I have a subform with a text box bound to Cost in the Items table. The data
in the subform is synchronized by the properties link child fields ItemID in
Items table and link master fields ItemID in combo box
My intention is for the user to be able to change the Cost and the underlying
Items table be updated. (I added Me.Requery to the the AfterUpdate event of
the Cost text box to redisplay the new Cost.)
Most of the time this works great. Occasionally I am getting “The changes
you requested to the table were not successful because they would create
duplicate values in the index, primary key, or relationshipâ€
What would make Access think I am trying to add something new as opposed to
updating existing data?
Thanks!
ItemID, Items.Desc FROM Items ORDER BY Items.ItemID) in the row source
property
I have a subform with a text box bound to Cost in the Items table. The data
in the subform is synchronized by the properties link child fields ItemID in
Items table and link master fields ItemID in combo box
My intention is for the user to be able to change the Cost and the underlying
Items table be updated. (I added Me.Requery to the the AfterUpdate event of
the Cost text box to redisplay the new Cost.)
Most of the time this works great. Occasionally I am getting “The changes
you requested to the table were not successful because they would create
duplicate values in the index, primary key, or relationshipâ€
What would make Access think I am trying to add something new as opposed to
updating existing data?
Thanks!