I am using Access 2000. I would like to fill up a combo box with values dynamically from a table when user click the combo box only (not at the form load time).
I have tried the click and mouse down event, however, none of them work (my combo box still empty). Any advice ? Below is the sample code
Private Sub cboDefectGroup_MouseDown(Button As Integer, Shift As Integer, X As Single, Y As Single)
cboDefectGroup.RowSource = "select DefectCode, Description from Defect"
cboDefectGroup.ColumnWidth = "0cm;2.54cm"
cboDefectGroup.BoundColumn = 1
End Sub
Private Sub cboDefectGroup_Click()
cboDefectGroup.RowSource = "select DefectCode, Description from Defect"
cboDefectGroup.ColumnWidth = "0cm;2.54cm"
cboDefectGroup.BoundColumn = 1
End Sub
I have tried the click and mouse down event, however, none of them work (my combo box still empty). Any advice ? Below is the sample code
Private Sub cboDefectGroup_MouseDown(Button As Integer, Shift As Integer, X As Single, Y As Single)
cboDefectGroup.RowSource = "select DefectCode, Description from Defect"
cboDefectGroup.ColumnWidth = "0cm;2.54cm"
cboDefectGroup.BoundColumn = 1
End Sub
Private Sub cboDefectGroup_Click()
cboDefectGroup.RowSource = "select DefectCode, Description from Defect"
cboDefectGroup.ColumnWidth = "0cm;2.54cm"
cboDefectGroup.BoundColumn = 1
End Sub