Stuart McLachlan
stuart at lexacorp.com.pg
Wed Apr 30 17:11:47 CDT 2003
It's already built into the built into the NotInList event handler. Try this: Private Sub Combo4_NotInList(NewData As String, Response As Integer) 'open form modal so that nothing else happens until the data is 'added and the form closed DoCmd.OpenForm "frmAdd", , , , , acDialog 'Tell the combo box that data has been added so that it ' requeries itself and continues Response = acDataErrAdded End Sub On 30 Apr 2003 at 12:41, Terri Jarus wrote: > This is probably very simple, but I'm not understanding how to do > this. I have a form (frmStock) with a combo box - cboFacNum. If the > number the user wishes to use is not in the list, I need to open > another form (frmAdd) to add that number and additional information - > then return to the original form and continue on. > > How do you make this work so that when you come back to frmStock to > continue on - the item you just added is in the combo box listing? > > Thanks for any help. > _______________________________________________ > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com -- Lexacorp Ltd http://www.lexacorp.com.pg Information Technology Consultancy, Software Development,System Support.