G
gmenon100 via AccessMonster.com
I am using MS access project with SQL backend.
I have a main form (1) which has 2 unbound combobox (vendor & invno).
I have been able to populate the 2nd combobox using the below statement:
Private Sub vendor_AfterUpdate()
Me.invno.RowSource = "SELECT title FROM" & _
" [issue totals query] WHERE vendor = " & Me.vendor ORDER BY title"
Me.invno = Me.invno.ItemData(0)
End Sub
this populates all "Titles" for vendors selected in Combobox 1. However, I
want it to add one more condition. I want it to also check for status
<>"PAID". Status, Vendor are fields in a table.
In short if a vendor is selected in combobox1, combobox2 should display only
open invoice numbers.
Can someone please help me formulate this. Sincerly appreciate response.
Gmenon
I have a main form (1) which has 2 unbound combobox (vendor & invno).
I have been able to populate the 2nd combobox using the below statement:
Private Sub vendor_AfterUpdate()
Me.invno.RowSource = "SELECT title FROM" & _
" [issue totals query] WHERE vendor = " & Me.vendor ORDER BY title"
Me.invno = Me.invno.ItemData(0)
End Sub
this populates all "Titles" for vendors selected in Combobox 1. However, I
want it to add one more condition. I want it to also check for status
<>"PAID". Status, Vendor are fields in a table.
In short if a vendor is selected in combobox1, combobox2 should display only
open invoice numbers.
Can someone please help me formulate this. Sincerly appreciate response.
Gmenon