A
alee via AccessMonster.com
Hello,
I want to be able to pass a string as a parameter to Access SQL query engine
within Visual Studio's table adapter editor and have it return a table sorted
by the Order of the string entered:
SELECT CustomerID, CompanyName, ContactName, Country
FROM Customers
ORDER BY ?
I could enter the above query inside Visual Studio.NET 2005 table adapter.
When I tried
to preview the result, Access ignored what I typed in the param textbook.
I tried to enter:
Country ASC
Country DESC
CustomerID ASC
CustomerID DESC
But, none of them seemed to have any effect on the resulting table.
Any help will be greatly appreciated.
Alan L.
I want to be able to pass a string as a parameter to Access SQL query engine
within Visual Studio's table adapter editor and have it return a table sorted
by the Order of the string entered:
SELECT CustomerID, CompanyName, ContactName, Country
FROM Customers
ORDER BY ?
I could enter the above query inside Visual Studio.NET 2005 table adapter.
When I tried
to preview the result, Access ignored what I typed in the param textbook.
I tried to enter:
Country ASC
Country DESC
CustomerID ASC
CustomerID DESC
But, none of them seemed to have any effect on the resulting table.
Any help will be greatly appreciated.
Alan L.