Hi All
I have eleven text-fields (S1-S11) where I can enter clothes-sizes like this:
To make it easier for the users I have created a combobox so they can use any old sizecombination.
cboSelectSize Row Source: (the "*" is just used as a field separator)
My problem is that most of the size combinations shows up twice in my combobox even if I use "DISTINCT". I have an idea that the problem has something to do with null values, but have not been able to solve it. Have any of you out there any ideas or suggestions?
Thanks in advance
Hakan Haskel
I have eleven text-fields (S1-S11) where I can enter clothes-sizes like this:
Code:
[S1] [S2] [S3] [S4] [S5] [S6] [S7]...
S M L XL
XS S M L XL XXL
42 44 46 48 50
cboSelectSize Row Source: (the "*" is just used as a field separator)
Code:
SELECT DISTINCT ("*" & [S1] & "*" & [S2] & "*" & [S3] & "*" & [S4] & "*" & [S5] & "*" & [S6] & "*" & [S7] & "*" & [S8] & "*" & [S9] & "*" & [S10] & "*" & [S11] & "*") , [tbl1].S1, [tbl1].S2, [tbl1].S3, [tbl1].S4, [tbl1].S5, [tbl1].S6, [tbl1].S7, [tbl1].S8, [tbl1].S9, [tbl1].S10, [tbl1].S11
FROM [tbl1];
Private Sub cboSelectSize_Change()
' Set Sizefields from Combobox
Me.S1 = cboSelectSize.Column(1)
Me.S2 = cboSelectSize.Column(2)
Me.S3 = cboSelectSize.Column(3)
Me.S4 = cboSelectSize.Column(4)
Me.S5 = cboSelectSize.Column(5)
Me.S6 = cboSelectSize.Column(6)
Me.S7 = cboSelectSize.Column(7)
Me.S8 = cboSelectSize.Column(8)
Me.S9 = cboSelectSize.Column(9)
Me.S10 = cboSelectSize.Column(10)
Me.S11 = cboSelectSize.Column(11)
Me.Form.Refresh
End Sub
My problem is that most of the size combinations shows up twice in my combobox even if I use "DISTINCT". I have an idea that the problem has something to do with null values, but have not been able to solve it. Have any of you out there any ideas or suggestions?
Thanks in advance
Hakan Haskel