B
BK
Hello,
I have 2 tables tbl.shape [shape.shape_id, shape.name]
and tbl.size, [shape_id, size.name]
I'm trying to builld combo boxes SHAPE and SIZE
cbo.SHAPE has a section of 6 possible shapes. when one is selected I want it
to populate the second cbo.size with the appropraite sizes from tbl.size.
I have tried multiple methods and not having success on something that would
appear to be so easy.
Private sub SIZE_AfterUpdate()
Dim strSQL as String
If Len(Me.SIZE) > 0 Then
Me.SIZE = Null
strSQL = "SELECT DISTINCT SHAPE_ID" _
& "FROM tblSIZE "_
& "WHERE SHAPE_ID = "" & me.chooseSIZE & """
Debug.Print strSQL
me.SIZE.RowSource = strSQL
End Sub
Maybe I'm going down the wrong path???
Any help would be greatly appricaited!
I have 2 tables tbl.shape [shape.shape_id, shape.name]
and tbl.size, [shape_id, size.name]
I'm trying to builld combo boxes SHAPE and SIZE
cbo.SHAPE has a section of 6 possible shapes. when one is selected I want it
to populate the second cbo.size with the appropraite sizes from tbl.size.
I have tried multiple methods and not having success on something that would
appear to be so easy.
Private sub SIZE_AfterUpdate()
Dim strSQL as String
If Len(Me.SIZE) > 0 Then
Me.SIZE = Null
strSQL = "SELECT DISTINCT SHAPE_ID" _
& "FROM tblSIZE "_
& "WHERE SHAPE_ID = "" & me.chooseSIZE & """
Debug.Print strSQL
me.SIZE.RowSource = strSQL
End Sub
Maybe I'm going down the wrong path???
Any help would be greatly appricaited!