S
Stephen Haley
In access 2003 I have a list box with 2 columns ID(hidden) & name. If the
user enters a new name I am using the Notinlist event to pop up a form, let
the users enter the details add the data to the source recordset then set
the notinlist event to acDataErrAdded and then try to set the control to the
newid. Fairly standard stuff but The problem comes if the user changes the
text passed from the combo box to the form. If they do change it then I get
an error message when I try to set the control to the new id (hidden column)
that it is not in the list. When I look at the list the new item has been
added with the ID that I tried to set it to. If I reiterate the cbbox.value=
id after the notinlist event completes it works fine.
What is going on? I am sure this used to work fine with 2002.
rgds
Stephen
user enters a new name I am using the Notinlist event to pop up a form, let
the users enter the details add the data to the source recordset then set
the notinlist event to acDataErrAdded and then try to set the control to the
newid. Fairly standard stuff but The problem comes if the user changes the
text passed from the combo box to the form. If they do change it then I get
an error message when I try to set the control to the new id (hidden column)
that it is not in the list. When I look at the list the new item has been
added with the ID that I tried to set it to. If I reiterate the cbbox.value=
id after the notinlist event completes it works fine.
What is going on? I am sure this used to work fine with 2002.
rgds
Stephen