L
lmv
HELP PLEASE!
Using the following code... for sorting my 2nd cbo is resetting ALL records
on purchaseordersubform instead of only the one I am working on. Can someone
tell me what code I need to add to make it only the current record I am in?
2nd question I also want to sort this ascending and I don't know the code to
put within the SQL.
Thanks!
Private Sub cboCategoryID_AfterUpdate()
Dim ProductName As String
ProductName = "SELECT [ProductsTTL].[ProductID],
[ProductsTTL].[CategoryID], [ProductsTTL].[ProductName] " & _
"FROM ProductsTTL " & _
"WHERE [CategoryID] = " & Me.cboCategoryID.Value
Me.cboProductName.RowSource = ProductName
Me.cboProductName.Requery
End Sub
Using the following code... for sorting my 2nd cbo is resetting ALL records
on purchaseordersubform instead of only the one I am working on. Can someone
tell me what code I need to add to make it only the current record I am in?
2nd question I also want to sort this ascending and I don't know the code to
put within the SQL.
Thanks!
Private Sub cboCategoryID_AfterUpdate()
Dim ProductName As String
ProductName = "SELECT [ProductsTTL].[ProductID],
[ProductsTTL].[CategoryID], [ProductsTTL].[ProductName] " & _
"FROM ProductsTTL " & _
"WHERE [CategoryID] = " & Me.cboCategoryID.Value
Me.cboProductName.RowSource = ProductName
Me.cboProductName.Requery
End Sub