A
Alan Armstrong
I am trying to count the winning numbers in a line of lotto. If I use
expressions for each field like
Expr1: IIf([Numbers].[1] In (1,5,13,22,34,38,20),1,0)
that works fine, but if I try to take the contents inside the bracket from
another table with this SELECT statement
Expr1: IIf([Numbers].[1] In (SELECT [1] & Chr$(44) & [2] & Chr$(44) & [3] &
Chr$(44) & [4] & Chr$(44) & [5] & Chr$(44) & [6] & Chr$(44) & FROM
Winners,1,0)
that doesn't work. Both tables have the same data type (integer) and I've
tried using Val without success. The SELECT statement looks OK as a
standalone field.
Can someone help please?
Alan Armstrong
expressions for each field like
Expr1: IIf([Numbers].[1] In (1,5,13,22,34,38,20),1,0)
that works fine, but if I try to take the contents inside the bracket from
another table with this SELECT statement
Expr1: IIf([Numbers].[1] In (SELECT [1] & Chr$(44) & [2] & Chr$(44) & [3] &
Chr$(44) & [4] & Chr$(44) & [5] & Chr$(44) & [6] & Chr$(44) & FROM
Winners,1,0)
that doesn't work. Both tables have the same data type (integer) and I've
tried using Val without success. The SELECT statement looks OK as a
standalone field.
Can someone help please?
Alan Armstrong