R
Revned
Hi,
I have 2 unbound combo boxes in my main form frmMasterListDetails
Combo box 1
Name: PONo
RowSourceType:Table/Query
RowSource: SELECT qryMasterList.PO, qryMasterList.Trigram FROM qryMasterList
GROUP BY PO, Trigram;
Column Count: 2
Bound Column: 1
I try this Event procedure in Combo box 1
Private Sub PONo_AfterUpdate()
Me.Equipment2.RowSource = "SELECT Equipment FROM" & _
" qryMasterList WHERE PONo = " & Me.Equipment & _
" ORDER BY Equipment"
Me.Equipment2 = Me.Equipment2.ItemData(0)
Combo box 2
Name:Equipment2
RowSourceType:Table/Query
ColumnCount;2
BoundColumn;1
But it doesn't work at all, when I select from my PONo combo box
it does not gives me a list of equipment in my combo box 2, it leaves blank.
Please can anyone is kind to help me how to figure out or maybe i got
a wrong in my VBA becuase I just copied it from samples and replace some
name fields? I might be wrong in replacing the field names?
Please can anyone is kind to help me
Thanks in advance
I have 2 unbound combo boxes in my main form frmMasterListDetails
Combo box 1
Name: PONo
RowSourceType:Table/Query
RowSource: SELECT qryMasterList.PO, qryMasterList.Trigram FROM qryMasterList
GROUP BY PO, Trigram;
Column Count: 2
Bound Column: 1
I try this Event procedure in Combo box 1
Private Sub PONo_AfterUpdate()
Me.Equipment2.RowSource = "SELECT Equipment FROM" & _
" qryMasterList WHERE PONo = " & Me.Equipment & _
" ORDER BY Equipment"
Me.Equipment2 = Me.Equipment2.ItemData(0)
Combo box 2
Name:Equipment2
RowSourceType:Table/Query
ColumnCount;2
BoundColumn;1
But it doesn't work at all, when I select from my PONo combo box
it does not gives me a list of equipment in my combo box 2, it leaves blank.
Please can anyone is kind to help me how to figure out or maybe i got
a wrong in my VBA becuase I just copied it from samples and replace some
name fields? I might be wrong in replacing the field names?
Please can anyone is kind to help me
Thanks in advance