Originally Posted by
dylcon
...My first combo box is not bound to the form, which I think is causing my problem...
That's not the problem. In point of fact, these Comboboxes are almost always Unbound!
You need a semi-colon at the end of your SQL Statement:
& " ORDER BY tblPartInfo.PartNumber;"
so you end up with
Code:
Private Sub CustomerNamecbo_AfterUpdate()
Dim strSource As String
strSource = "SELECT tblPartInfo.PartNumber, tblPartInfo.PartNumber " & _
"FROM tblPartInfo " & _
"WHERE CustomerName = '" & Me.CustomerNamecbo & "'" _
& " ORDER BY tblPartInfo.PartNumber;"
Me.PartNumbercbo.RowSource = strSource
Me.PartNumbercbo = vbNullString
End Sub
Linq ;0)>
The problem with making anything foolproof...is that fools are so darn ingenious!
All posts/responses based on Access 2003/2007