S
Stapes
Hi
I have a combo box on a subform that is used to display the name items
from another table refered to by a Foreign Key. I am opening another
form and adding a new item to this other table, but when I return, the
new items name does not show. If I close the form and re-open it, the
name re-appears. I use a .requery on the subform after my new record
is saved, but that does not help. I am guessing that the source for
the combo box does not update itself.
I have seen a solution in another post that looks like it might be the
one, but I don't know how to implement it. This is it:
Rather than doing a Requery, try the built in Response argument.
Response = acDataErrAdded
will tell the combo box that the new item was added and that it
should
requery itself.
Response = acDataErrContinue
will tell the combo box that you're handled the error and it doesn't
need to
do anything. Use this if the user decides what they typed was a
mistake and
they don't really want to add the item.
Where would I put these commands?
Stapes
I have a combo box on a subform that is used to display the name items
from another table refered to by a Foreign Key. I am opening another
form and adding a new item to this other table, but when I return, the
new items name does not show. If I close the form and re-open it, the
name re-appears. I use a .requery on the subform after my new record
is saved, but that does not help. I am guessing that the source for
the combo box does not update itself.
I have seen a solution in another post that looks like it might be the
one, but I don't know how to implement it. This is it:
Rather than doing a Requery, try the built in Response argument.
Response = acDataErrAdded
will tell the combo box that the new item was added and that it
should
requery itself.
Response = acDataErrContinue
will tell the combo box that you're handled the error and it doesn't
need to
do anything. Use this if the user decides what they typed was a
mistake and
they don't really want to add the item.
Where would I put these commands?
Stapes