A family of Microsoft relational database management systems designed for ease of use.
A form's Dirty property only becomes True when the value of data in a control bound to a column in the table on which the form is based changes. Consequently, this will not be the case with an unbound control, as you have here. A common place to drop down a combo box's list is in its GotFocus event procedure, which is triggered when the user moves focus to the control with the mouse or keyboard.
In some situations you might want to drop down a combo box when another control is updated, or when a control's LostFocus event is trggered. The code below is an example of the former from my Relationships demo, which you can find in my public databases folder at:
https://onedrive.live.com/?cid=44CC60D7FEA42912&id=44CC60D7FEA42912!169
When the strength in which a drug is prescribed is selected in the cboStrength combo box, the cboDrugForm combo box is requeried to list only the forms (tablet, capsule etc) in which the drug is available in the selected strength, and the combo box is dropped down ready for the user to make a selection. Note that focus has to be moved to the combo box with the SetFocus method before it can be dropped down:
Private Sub cboStrength_AfterUpdate()
On Error GoTo Err_Handler
' assign selected unit to txtUnit control
Me.txtUnit = Me.cboStrength.Column(1)
' requery cboDrugForm control to show forms
' for selected drug/strength/unit
With Me.cboDrugForm
.Requery
.SetFocus
.Dropdown
End With
Exit_Here:
Exit Sub
Err_Handler:
MsgBox Err.Description & " (" & Err.Number & ") ", vbExclamation, "Error"
Resume Exit_Here
End Sub