So I have gotten rid of all of my lookups and I am trying to cascade the combobox once again, but it is still not working. What I want to happen is that once the 'CustomerNamecbo' is updated, I would like the 'PartNumbercbo' to requery accordingly. It keeps asking me to enter parameter values once I click on 'PartNumbercbo'
Code:
Private Sub CustomerNamecbo_AfterUpdate()
Dim strSource As String
strSource = "SELECT ActiveParts.PartNumber, ActiveParts.PartNumber " & _
"FROM ActiveParts " & _
"WHERE CompanyName = '" & Me.CustomerNamecbo & "' ORDER BY ActiveParts.PartNumber"
Me.PartNumbercbo.RowSource = strSource
Me.PartNumbercbo = vbNullString
End Sub