ExcelBanter

ExcelBanter (https://www.excelbanter.com/)
-   Excel Discussion (Misc queries) (https://www.excelbanter.com/excel-discussion-misc-queries/)
-   -   entering parameter criteria MS Query (https://www.excelbanter.com/excel-discussion-misc-queries/262721-entering-parameter-criteria-ms-query.html)

KM01

entering parameter criteria MS Query
 
Hope someone can help. Im trying to extract data from a SQL Server 2005 into
Excel, using a parameter criteria in MS Query. If I use criteria in a field
with an integer data type it works fine. If I use a field with an NVARCHAR
data type (which is the one I want) I get a €œSyntax Error€ message. There
seems to be no way of entering criteria into this type of field which MS
Query will accept. If I enter james it defaults to Njames€˜, which works as
syntax criteria in SQL Server Management Studio 2005, but not in MS Query.
What am I doing wrong?!


All times are GMT +1. The time now is 06:07 AM.

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
ExcelBanter.com