Big Freak CC
New Member
- Joined
- Feb 11, 2004
- Messages
- 2
I am trying to write a SQL query in Excel which needs two inputs taken in as parameters. One is just a date, which is easy and works. The second requires a list of names that will change every day.
So ordinarily, the query would read
blah blah blah
where name in ('Jon','Eric','Connie','Phil'....)
But when you set up the name list as a paramter (which has to be only a single cell), I can't get it to work. No matter what I try this error comes up:
[Microsoft][ODBC SQL Server Driver]String Data, right truncation
How can I fix this.
Thanks
Jon
So ordinarily, the query would read
blah blah blah
where name in ('Jon','Eric','Connie','Phil'....)
But when you set up the name list as a paramter (which has to be only a single cell), I can't get it to work. No matter what I try this error comes up:
[Microsoft][ODBC SQL Server Driver]String Data, right truncation
How can I fix this.
Thanks
Jon