I am trying to use the Microsoft Query to retrieve data from an external program and I am having an issue with the quantity of parameters I need to incorporate. Basically, I have about 100 values (i.e. accounts) that I need to be able to independently specificy. I've done this by having four separate criteria lines such as
In([U1],[U2],[U3]...)
It could not fit all 100 on one criteria line, so I've created four lines with 25 accounts each. That works okay, but, when I then try to add another column of critieria, say to specify the year or a subaccount, I get an error:
SQL0104 - Token [ was not valid. Valid tokens : ( + - ? DAY NOT RRN CASE CAST CHAR DATE DAYS HASH HOUR LEFT
I can only assume I am receiving this because of some sort of size limit... Is anyone familiar with MS Query's limits to the number of parameters that can be used? Or is there some more efficient way of specifying that a parameter must be one of a longer list?
Thanks
In([U1],[U2],[U3]...)
It could not fit all 100 on one criteria line, so I've created four lines with 25 accounts each. That works okay, but, when I then try to add another column of critieria, say to specify the year or a subaccount, I get an error:
SQL0104 - Token [ was not valid. Valid tokens : ( + - ? DAY NOT RRN CASE CAST CHAR DATE DAYS HASH HOUR LEFT
I can only assume I am receiving this because of some sort of size limit... Is anyone familiar with MS Query's limits to the number of parameters that can be used? Or is there some more efficient way of specifying that a parameter must be one of a longer list?
Thanks