D
David C. Holley
I'm upsizing an Access DB to SQL Server and updating the queries as needed.
The only thing that's changed in the query below are the new names in SQL
Server, yet instead of returning
* <Show All>
Dispatched Dispatched
Not Ready Not Ready
Ready for Dispatch Ready for Dispatch
I'm getting...
<Show All> <Show All>
Dispatched Dispatched
Not Ready Not Ready
Ready for Dispatch Ready for Dispatch
Its a query for a combo box which places <Show All> as the first record and
allows all records to be selected using the * wildcard. And yes, I know that
I'll need to switch over to % for it to work.
What the hell am I missing?
SELECT USys_dbo_DispatchStatusCodes.StatusCode,
USys_dbo_DispatchStatusCodes.StatusCode AS [Dispatch Status] FROM
USys_dbo_DispatchStatusCodes UNION SELECT "*" Expr1, "<Show All>" AS Expr2
FROM USys_dbo_DispatchStatusCodes;
The only thing that's changed in the query below are the new names in SQL
Server, yet instead of returning
* <Show All>
Dispatched Dispatched
Not Ready Not Ready
Ready for Dispatch Ready for Dispatch
I'm getting...
<Show All> <Show All>
Dispatched Dispatched
Not Ready Not Ready
Ready for Dispatch Ready for Dispatch
Its a query for a combo box which places <Show All> as the first record and
allows all records to be selected using the * wildcard. And yes, I know that
I'll need to switch over to % for it to work.
What the hell am I missing?
SELECT USys_dbo_DispatchStatusCodes.StatusCode,
USys_dbo_DispatchStatusCodes.StatusCode AS [Dispatch Status] FROM
USys_dbo_DispatchStatusCodes UNION SELECT "*" Expr1, "<Show All>" AS Expr2
FROM USys_dbo_DispatchStatusCodes;