justice2003
Programmer
This is more of two questions. But my major problem is that I get the query is too complex error when I load up the form where this query is stored as a subform.
If I take out this part it works but I need something like this:
(Mid([combined_x_x]![nxx x x],[Forms]![blank_block_Search]![digits],1) Not In ([Forms]![blank_block_Search]![hiddenlist]))=True)
The hiddenlist field will be a list of numbers comma separated. such as 1,2,3. I know this part will work when I just load up the query and just put in one number for hiddenlist field but it doesn't work for multiple numbers.
here is my full query:
SELECT X_type.[NAME], combined_x_x.[nxx x x], X_type.Type, X_type.Cust_Data
FROM X_type INNER JOIN combined_x_x ON (X_type.X = combined_x_x.X) AND (X_type.NXX = combined_x_x.NXX)
WHERE (((Mid([combined_x_x]![nxx x x],[Forms]![blank_block_Search]![digits],1) Not In ([Forms]![blank_block_Search]![hiddenlist]))=True))
GROUP BY X_type.[NAME], combined_x_x.[nxx x x], X_type.Type, X_type.Cust_Data
HAVING (((X_type.Type) Is Null));
If I take out this part it works but I need something like this:
(Mid([combined_x_x]![nxx x x],[Forms]![blank_block_Search]![digits],1) Not In ([Forms]![blank_block_Search]![hiddenlist]))=True)
The hiddenlist field will be a list of numbers comma separated. such as 1,2,3. I know this part will work when I just load up the query and just put in one number for hiddenlist field but it doesn't work for multiple numbers.
here is my full query:
SELECT X_type.[NAME], combined_x_x.[nxx x x], X_type.Type, X_type.Cust_Data
FROM X_type INNER JOIN combined_x_x ON (X_type.X = combined_x_x.X) AND (X_type.NXX = combined_x_x.NXX)
WHERE (((Mid([combined_x_x]![nxx x x],[Forms]![blank_block_Search]![digits],1) Not In ([Forms]![blank_block_Search]![hiddenlist]))=True))
GROUP BY X_type.[NAME], combined_x_x.[nxx x x], X_type.Type, X_type.Cust_Data
HAVING (((X_type.Type) Is Null));