CodeGuru Home VC++ / MFC / C++ .NET / C# Visual Basic VB Forums Developer.com
Results 1 to 2 of 2
  1. #1
    Join Date
    Feb 2001
    Location
    New Jersey
    Posts
    312

    SQL error - Wrong types

    The error I am getting is
    "Arguments are of the wrong type, are out of acceptable range or and in conflict of each other. 3001"


    I am trying to filter out a record set so that it only shows codes that are in my list.

    strDedList = "'D06','D03'"

    AND voldedcode1 IN(" & strDedList & ") "

    I know the above works with integers... I guess it doesnt work with strings. Is there some other method I need for strings?
    http://www.dewgames.com
    Shareware and Free games!

  2. #2
    Join Date
    Apr 2002
    Location
    Melbourne, Victoria, Australia
    Posts
    1,792
    Try
    Code:
    strDedList = "''D06'',''D03''"
    
    AND voldedcode1 IN (strDedList)
    That is DoubleQuoteSingleQuoteSingleQuoteD06SingleQuoteSingleQuoteComma etc
    Be nice to Harley riders...

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  





Click Here to Expand Forum to Full Width

Featured