I have a datasheet form ItemsForm based on table Items. Items is one-to-many related to table StatusHistory, between Items.ID and StatusHistory.ItemID. There is also a Status table, with the relationship between Status.ID and StatusHistory.StatusID.
I want to add a StatusBox combo box to ItemsForm so that when the user selects a Status value from the box and then moves out of the record, which should trigger the Form_BeforeUpdate() event, a new entry is added to StatusHistory with the Items.ID of the currently selected entry.
I've successfully added the StatusBox field to the form and populated its list by setting its RowSource with a query of Status. But there are two big problems:
I can scroll through the values in the box's list, but after I select one, it doesn't show up in the field; the field stays blank.
When I select a value in
StatusBox, and then click onto another record, theForm_BeforeUpdate()isn't triggered. It seems thatForm_BeforeUpdate()is only triggered if I modify data in the fields fromItemsthat the form is based on. Is there a different event that I should be using here?