D
Don
On my form I have a combo box with a select query that populates the choices
in the combo box. Sometimes during entry an item must be added to the combo
box. To address this, in the double click event of the combo box, my code
opens a pop-up form so I can update the table that holds the items shown in
the combo box. This part works well. What I want the form to do once I close
the pop-up is to update the combo box so that I can choose the updated entry.
When I put a button on the form with the DoCmd.DoMenuItem acFormBar,
acRecordsMenu, 5, , acMenuVer70 code, it updates perfectly. I have tryed to
add the following code to refresh the page and also have tried to add code to
requery the form but have not been sucessfull. I have tried both of the
following code seperately and together in the after update event, single
click, and several other events of the combo box. without sucess
DoCmd.DoMenuItem acFormBar, acRecordsMenu, 5, , acMenuVer70
and
Me.Form.Requery
I guess the button will work but I would like to reduce the key strokes not
increase them. Any suggestions on where I am going wrong?
in the combo box. Sometimes during entry an item must be added to the combo
box. To address this, in the double click event of the combo box, my code
opens a pop-up form so I can update the table that holds the items shown in
the combo box. This part works well. What I want the form to do once I close
the pop-up is to update the combo box so that I can choose the updated entry.
When I put a button on the form with the DoCmd.DoMenuItem acFormBar,
acRecordsMenu, 5, , acMenuVer70 code, it updates perfectly. I have tryed to
add the following code to refresh the page and also have tried to add code to
requery the form but have not been sucessfull. I have tried both of the
following code seperately and together in the after update event, single
click, and several other events of the combo box. without sucess
DoCmd.DoMenuItem acFormBar, acRecordsMenu, 5, , acMenuVer70
and
Me.Form.Requery
I guess the button will work but I would like to reduce the key strokes not
increase them. Any suggestions on where I am going wrong?