문제

I have the following SQL statement:

Select Choose(1,Orders.Employee, Orders.Customer) as Name1, 
Choose(2,Orders.Employee, Orders.Customer) as Name2, [Shipped Date]
FROM Orders;

However, the field "[Shipped Date]" has a space in it and hence why I have put square brackets around it. The problem is, in SQL view, it seems to think that the sqaure brackets means its a parameter and its asks me for a value but I don't want a value, I want to be able to select that field name!

Thanks all for any help

도움이 되었습니까?

해결책

Try:

 Orders.[Shipped Date]

As an aside, it seems a little odd to use Choose when the descision is already made.

라이센스 : CC-BY-SA ~와 함께 속성
제휴하지 않습니다 StackOverflow
scroll top