Ask a Question related to Dreamweaver AppDev, Design and Development.

  1. #1

    Default WildCard Defaults

    I'm trying to use % as the default value in the query variables. I have a
    select list displaying numbers. At the top of the select list I want an
    "Select All" option. When I try to use % in either the form or the query I
    get the following error

    Error Type:
    Microsoft JET Database Engine (0x80040E14)
    Syntax error in query expression 'DP_homes.price>=0 AND
    DP_homes.price<=100001 AND DP_homes.totbed=% AND DP_homes.list_type=1'.
    /searchlist.asp, line 51

    this is line 51
    open rsDisplayList.Open()

    If I replace % with an actual field value like 1 it works fine but only
    return all which meet that criteria.

    Any help finding what I'm doing wrong would be greatly appreciated.

    Bill


    Bill Guest

  2. Similar Questions and Discussions

    1. Need help with wildcard
      I need help with wildcard. I tried to do a search and search for any record contains "agency list" in that column. I got no record return in this...
    2. Is there any value in ID's Wildcard S&R ?
      I can think of no scenerio in which a wildcard search should not return the initial value of the searched character. As it works now, a wildcard S&R...
    3. newbie: rcp and wildcard
      dear unix-gurux, i'd like to rcp a complete subdirectory-structure with all files within from an unix host to another unix host. my command looks...
    4. using FTP Wildcard in asp.net code
      Hi, We have an asp.net app that uploads and downloads files files from an FTP server. It works this way. 1) Put a MyFile.request file on the...
    5. Wildcard and DTS..?
      Hi all, I have a path in a DTS-package that looks like: sFilename = "d:\path\*.PMS" & Right(Year(Now()), 2) sFilename = DTSGlobalVariables ...
  3. #2

    Default Re: WildCard Defaults

    Needs to be LIKE '%'

    --
    Jules
    [url]http://www.charon.co.uk/charoncart[/url]
    Charon Cart 3
    Shopping Cart Extension for Dreamweaver MX/MX 2004


    Julian Roberts Guest

  4. #3

    Default Re: WildCard Defaults

    Using that I get this

    Error Type:
    Microsoft JET Database Engine (0x80040E14)
    Syntax error in query expression 'DP_homes.price>=0 AND
    DP_homes.price<=100001 AND DP_homes.totbed=''%'' AND DP_homes.list_type=1'.
    /searchlist.asp, line 51

    Bill
    "Julian Roberts" <newsg@charon.co.uk> wrote in message
    news:d3eo70$1ih$1@forums.macromedia.com...
    > Needs to be LIKE '%'
    >
    > --
    > Jules
    > [url]http://www.charon.co.uk/charoncart[/url]
    > Charon Cart 3
    > Shopping Cart Extension for Dreamweaver MX/MX 2004
    >
    >

    Bill Guest

  5. #4

    Default Re: WildCard Defaults

    In that query, the value of totbed must be a percent sign.
    I don't see the LIKE operator Jules mentioned.
    If the value of totbed can be anything, why include it in the query at all?

    "Bill @gmail.com>" <bill.betournay<SpamTrap> wrote in message
    news:d3etgs$944$1@forums.macromedia.com...
    > Using that I get this
    >
    > Error Type:
    > Microsoft JET Database Engine (0x80040E14)
    > Syntax error in query expression 'DP_homes.price>=0 AND
    > DP_homes.price<=100001 AND DP_homes.totbed=''%'' AND
    > DP_homes.list_type=1'.
    > /searchlist.asp, line 51
    >
    > Bill
    > "Julian Roberts" <newsg@charon.co.uk> wrote in message
    > news:d3eo70$1ih$1@forums.macromedia.com...
    >> Needs to be LIKE '%'
    >>
    >> --
    >> Jules
    >> [url]http://www.charon.co.uk/charoncart[/url]
    >> Charon Cart 3
    >> Shopping Cart Extension for Dreamweaver MX/MX 2004
    >>
    >>
    >
    >

    Les Matthews Guest

  6. #5

    Default Re: WildCard Defaults

    Hey Guys

    Thought I'd stop back in and thank you both for the help. That didn't really
    correct my problem but it did get me pointed in the right direction.

    Bill


    "Les Matthews" <LesAMatthews@yahoo.com> wrote in message
    news:d3ev2q$b1u$1@forums.macromedia.com...
    > In that query, the value of totbed must be a percent sign.
    > I don't see the LIKE operator Jules mentioned.
    > If the value of totbed can be anything, why include it in the query at
    > all?
    >
    > "Bill @gmail.com>" <bill.betournay<SpamTrap> wrote in message
    > news:d3etgs$944$1@forums.macromedia.com...
    >> Using that I get this
    >>
    >> Error Type:
    >> Microsoft JET Database Engine (0x80040E14)
    >> Syntax error in query expression 'DP_homes.price>=0 AND
    >> DP_homes.price<=100001 AND DP_homes.totbed=''%'' AND
    >> DP_homes.list_type=1'.
    >> /searchlist.asp, line 51
    >>
    >> Bill
    >> "Julian Roberts" <newsg@charon.co.uk> wrote in message
    >> news:d3eo70$1ih$1@forums.macromedia.com...
    >>> Needs to be LIKE '%'
    >>>
    >>> --
    >>> Jules
    >>> [url]http://www.charon.co.uk/charoncart[/url]
    >>> Charon Cart 3
    >>> Shopping Cart Extension for Dreamweaver MX/MX 2004
    >>>
    >>>
    >>
    >>
    >
    >

    Bill Guest

Posting Permissions

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

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139