M
mirax_00
Can someone who's worked in VBA tell me what's wrong with this code:
Private Sub cboCatTree_AfterUpdate()
Dim strSQL As String
Dim index As Integer
strSQL = "SELECT
dbo_tblProductCategoryLevel.iProductCategoryLevelId, "
strSQL = strSQL & "dbo_tblProductCategoryLevel.sDisplayName "
strSQL = strSQL & "FROM dbo_tblProductCategoryLevel "
strSQL = strSQL & "WHERE
dbo_tblProductCategoryLevel.iProductCategoryLevel = "
strSQL = strSQL & Me.cboCatTree.Column(0)
Me.cboCatLevel.RowSourceType = "Table/Query"
Me.cboCatLevel.RowSource = strSQL
Me.cboCatLevel.Requery
End Sub
When I run the form it asks me for the parameter value for
iProductCategoryLevelId each time I change the value in the cbx it
depends on...
I've looked all over in these newsgroups and support.microsoft.com and
from what I can tell this is what I'm supposed to do.
Thanks ahead of time for any help anyone can give me
-Jayyde
Private Sub cboCatTree_AfterUpdate()
Dim strSQL As String
Dim index As Integer
strSQL = "SELECT
dbo_tblProductCategoryLevel.iProductCategoryLevelId, "
strSQL = strSQL & "dbo_tblProductCategoryLevel.sDisplayName "
strSQL = strSQL & "FROM dbo_tblProductCategoryLevel "
strSQL = strSQL & "WHERE
dbo_tblProductCategoryLevel.iProductCategoryLevel = "
strSQL = strSQL & Me.cboCatTree.Column(0)
Me.cboCatLevel.RowSourceType = "Table/Query"
Me.cboCatLevel.RowSource = strSQL
Me.cboCatLevel.Requery
End Sub
When I run the form it asks me for the parameter value for
iProductCategoryLevelId each time I change the value in the cbx it
depends on...
I've looked all over in these newsgroups and support.microsoft.com and
from what I can tell this is what I'm supposed to do.
Thanks ahead of time for any help anyone can give me

-Jayyde