G
Guest
I have a combo box on my main form which displays a selection list from
another table. The combo box is set to "Limit To List". On the NotInList
event, I have the following code:
Private Sub Purchase_Order_Property_Code_NotInList(NewData As String,
Response As Integer)
[Purchase Order Property Code].Undo
Response = 0
DoCmd.OpenForm "New Properties"
[Purchase Order Property Code].Requery
End Sub
This displays my "New Properties" form, allowing the user to add a new
record. After PgDn to save the record, then closing the "New Properties"
form, the combo box does not display the newly added record in the selection
list. If I now close the main form and re-open it, the new record is
displayed in the selection list.
Reading through other messages has led me to believe that I must save the
record at some point for it to be displayed. Please help. Thanks!
another table. The combo box is set to "Limit To List". On the NotInList
event, I have the following code:
Private Sub Purchase_Order_Property_Code_NotInList(NewData As String,
Response As Integer)
[Purchase Order Property Code].Undo
Response = 0
DoCmd.OpenForm "New Properties"
[Purchase Order Property Code].Requery
End Sub
This displays my "New Properties" form, allowing the user to add a new
record. After PgDn to save the record, then closing the "New Properties"
form, the combo box does not display the newly added record in the selection
list. If I now close the main form and re-open it, the new record is
displayed in the selection list.
Reading through other messages has led me to believe that I must save the
record at some point for it to be displayed. Please help. Thanks!