PC Review


Reply
Thread Tools Rate Thread

WHERE [Characteristics].[abbrev] in ()

 
 
Tom
Guest
Posts: n/a
 
      13th Sep 2011
Sorry in advance for a rookie question, I've been assigned to convert
an Access application to SQL and I'm starting with essentially no
knowledge of either technology. The SQL Server Migration Assistant
tells me that the following Access Query is not supported in SQL and I
suspect it's the 'in()' that's invalid. Can anyone tell me what the
expression syntax in () is trying to return? Thanks.
SELECT [Characteristics].[description]
FROM characteristics
WHERE [Characteristics].[abbrev] in ()
ORDER BY Description;
 
Reply With Quote
 
 
 
 
Douglas J Steele
Guest
Posts: n/a
 
      13th Sep 2011
To be valid SQL, you'd need a comma-separated list in between the
parentheses:

SELECT [Characteristics].[description]
FROM characteristics
WHERE [Characteristics].[abbrev] in ("AB", "CD", "EF")
ORDER BY Description;

Do you know how the SQL was generated? If it was being built in VBA code,
based on, say, items selected in a multi-select list box, it looks as though
the list of objects to be searched was blank.

(actually, I suspect the separator may be determined by the List Separator
character in Regional Settings in the Control Panel)

"Tom" wrote in message
news:6952fcc1-84bf-493a-8078-(E-Mail Removed)...

Sorry in advance for a rookie question, I've been assigned to convert
an Access application to SQL and I'm starting with essentially no
knowledge of either technology. The SQL Server Migration Assistant
tells me that the following Access Query is not supported in SQL and I
suspect it's the 'in()' that's invalid. Can anyone tell me what the
expression syntax in () is trying to return? Thanks.
SELECT [Characteristics].[description]
FROM characteristics
WHERE [Characteristics].[abbrev] in ()
ORDER BY Description;

 
Reply With Quote
Reply

Thread Tools
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
State abbrev. TN changes to ten can not type TN as abbre. teresac Microsoft Excel Worksheet Functions 2 5th Jan 2009 09:09 PM
progress log (abbrev.) last two days =?Utf-8?B?TGFycnlJTm1pY2g=?= Windows XP MovieMaker 0 6th Jul 2006 09:19 PM
Re: help about browser characteristics Juan T. Llibre Microsoft ASP .NET 0 29th Aug 2005 01:19 PM
disable asp.net characteristics Aaron Microsoft ASP .NET 2 7th Mar 2005 07:18 PM
MyDoom Characteristics John Coutts Anti-Virus 1 4th Feb 2004 03:27 PM


Features
 

Advertising
 

Newsgroups
 


All times are GMT +1. The time now is 05:54 PM.