I have moved this hijack post to a new thread. Please do not take over an existing thread with your own questions as this is a punishable offense.
The original thread, from where this was originally taken, can be found at how to filter list of items in a combo box by selecting items in another combo.
{/Moderator Edit}
Hey guys... it's me again! I'm stuck on this one also. I have read both of your articles, and must say that both are very detailed and well written... thank you.
I found, though, that the article written by Rabbit more closely reflects my situation. My problem is that I am trying to use the first combo box for them to select the Department, and the second for them to select the truck number from that Department (CUA#). Both details can be found in the same table - VEHICLE DETAILS : Table.
Here is the code I am using:
Expand|Select|Wrap|Line Numbers
- Private Sub Combo14_Click()
- With Me![CUA#]
- If IsNull(Me!Department) Then
- .RowSource = ""
- Else
- .RowSource = "SELECT [CUA#] " & _
- "FROM VEHICLE DETAILS : Table " & _
- "WHERE [CUA#]=" & Me!Department
- End If
- Call .Requery
- End With
- End Sub
The form (named "Department List : Form") is visible in Screenshot 2, and the layout of the table is visible in Screenshot 3.
Thanks!