Results 1 to 3 of 3

Thread: INSTR in rset

  1. #1
    Gold Lounger
    Join Date
    Jan 2004
    Location
    Italy
    Posts
    3,245
    Thanks
    0
    Thanked 0 Times in 0 Posts
    I have maked this code but not work...:-(

    SQL = Empty
    SQL = "SELECT SETT FROM SETTORI WHERE MERCATO = '" & InStr(MERCATO, "BUSINESS") > 0 & "' ORDER BY SETT"
    Set RSSQLOOP = CNSQL.Execute(SQL)

    in effect i want to select only the rset that contain BUSINESS and i can have:

    SMALL BUSINESS or BUSINESS or BIG BUSINESS

  2. #2
    Plutonium Lounger
    Join Date
    Mar 2002
    Posts
    84,353
    Thanks
    0
    Thanked 29 Times in 29 Posts
    As I have mentioned before, you can omit the line

    SQL = Empty

    It serves no purpose whatsoever.

    Try the following:

    SQL = "SELECT SETT FROM SETTORI WHERE MERCATO Like '*BUSINESS*' ORDER BY SETT"

  3. #3
    Gold Lounger
    Join Date
    Jan 2004
    Location
    Italy
    Posts
    3,245
    Thanks
    0
    Thanked 0 Times in 0 Posts
    [quote name='HansV' post='769679' date='08-Apr-2009 13:32']As I have mentioned before, you can omit the line

    SQL = Empty

    It serves no purpose whatsoever.

    Try the following:

    SQL = "SELECT SETT FROM SETTORI WHERE MERCATO Like '*BUSINESS*' ORDER BY SETT"[/quote]

    TKS. work now!

    Sorry for ...SQL = Empty, get in mind!

Posting Permissions

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