johnisotank
Technical User
Hi All,
My apologies if this is posted in the wrong forum.
I have an Excel 2003 spreadsheet with data retrieved from an SQL server through Microsoft Query.
In my SQL server my SELECT statement is
So this means if a parameter is supplied then list all records meeting that param or otherwise show all records.
When I try this using Microsoft Query I get the error:
'STRING DATA RIGHT TRUNCATION'
Can anyone advise a workaround for this pls.
Thanks
John
My apologies if this is posted in the wrong forum.
I have an Excel 2003 spreadsheet with data retrieved from an SQL server through Microsoft Query.
In my SQL server my SELECT statement is
Code:
SELECT field1, field2
FROM myTable
WHERE (field1 ='' OR field1 = @Parameter)
When I try this using Microsoft Query I get the error:
'STRING DATA RIGHT TRUNCATION'
Can anyone advise a workaround for this pls.
Thanks
John