Sorry ahead of time if my terminology is not correct.
I have one table: SOW's
I have a bunch of columns in that table, two main columns:
SOW_Num - long integer
Customer - text
There are several (even duplicate) SOW_NUM for one customer
On my form I have a combo box for Customer
I have a list box for SOW_Num
I want the user to select a customer from the combo box and then the list box gets updated with only the sow numbers for that specific customer. It works right now however, I am being asked to manually type the name of the customer again after I have selected one. As soon as I type it in exactly the lisbox works correctly.
I have two subforms that are populating based upon that information as well but they are working, as long as I type in the customer name again.
Here is my code for the combo box:
Private Sub cbo_Customer_AfterUpdate()
Me.lbx_SOW_Num.RowSource = "SELECT tbl_ALL_SOW.SOW_Num" & _
" FROM tbl_ALL_SOW" & _
" WHERE tbl_ALL_SOW.Customer = " & _
Me.tbx_Customer.Value
End Sub
My eyes are going cross-eyed, any help would be appreciated!!
I have one table: SOW's
I have a bunch of columns in that table, two main columns:
SOW_Num - long integer
Customer - text
There are several (even duplicate) SOW_NUM for one customer
On my form I have a combo box for Customer
I have a list box for SOW_Num
I want the user to select a customer from the combo box and then the list box gets updated with only the sow numbers for that specific customer. It works right now however, I am being asked to manually type the name of the customer again after I have selected one. As soon as I type it in exactly the lisbox works correctly.
I have two subforms that are populating based upon that information as well but they are working, as long as I type in the customer name again.
Here is my code for the combo box:
Private Sub cbo_Customer_AfterUpdate()
Me.lbx_SOW_Num.RowSource = "SELECT tbl_ALL_SOW.SOW_Num" & _
" FROM tbl_ALL_SOW" & _
" WHERE tbl_ALL_SOW.Customer = " & _
Me.tbx_Customer.Value
End Sub
My eyes are going cross-eyed, any help would be appreciated!!