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

  1. #1

    Default ASP Recordset Help!

    Hi,
    I have been trying to construct a results page in dreamweaver/asp if i put
    a search in with one parameter it works fine (ie, select name from names where
    name = 'MMcolPara') where MMcolPara is equal to Request.Form("Name"). BUT when
    i add more boxes to my form and go to my results page and add new parameters
    like varProductName which is equal to Request.Form("ProductName") and add it to
    the sql query (ie, select name from names where name = 'MMcolPara' and/or
    ProductName = 'varProductName') i get errors, why???
    I'm trying to return either both results or just one result depending on the
    info sent. I realise i must have to set up if... else.. clauses???
    Any help in this matter?
    Thanks, Ian

    longsdale Guest

  2. Similar Questions and Discussions

    1. Recordset Help
      Hey all, I am wondering if someone could help me create an SQL query for a recordset I am building. I have a database with many tables. In one...
    2. Using a Recordset
      I'm trying to expand my web design skills by learning how to include some dynamic content in a site. Currently I have an Access database, and...
    3. Is this possible with a recordset?
      Hello, Looking for some expert help. I am using Dreamweaver MX 2004. I have a need that I was wondering if it was possible accomplish using a...
    4. ADO - Recordset
      I was wondering if anyone can help me. I've converting an already existing system (designed in Access which produces reports for the accounts dept)...
    5. RecordSet.Move or RecordSet.AbsolutePosition??
      Hi, I'm trying to use either one of these methods to position the cursor in a specific position inside a recordset, but neither one seems to...
  3. #2

    Default Re: ASP Recordset Help!

    Ian

    There is no such thing as an And/Or condition in a SQL statement, it is
    either one or the other. If you use wildcard values as the defaults in your
    query then you can use And statements regardless of what is passed from the
    form.

    --
    Regards

    Paul Whitham
    Macromedia Certified Professional for Dreamweaver MX2004
    Valleybiz Internet Design
    [url]www.valleybiz.net[/url]

    Team Macromedia Volunteer for Ultradev/Dreamweaver MX
    [url]www.macromedia.com/support/forums/team_macromedia[/url]

    "longsdale" <webforumsuser@macromedia.com> wrote in message
    news:d2broj$49d$1@forums.macromedia.com...
    > Hi,
    > I have been trying to construct a results page in dreamweaver/asp if
    i put
    > a search in with one parameter it works fine (ie, select name from names
    where
    > name = 'MMcolPara') where MMcolPara is equal to Request.Form("Name"). BUT
    when
    > i add more boxes to my form and go to my results page and add new
    parameters
    > like varProductName which is equal to Request.Form("ProductName") and add
    it to
    > the sql query (ie, select name from names where name = 'MMcolPara' and/or
    > ProductName = 'varProductName') i get errors, why???
    > I'm trying to return either both results or just one result depending on
    the
    > info sent. I realise i must have to set up if... else.. clauses???
    > Any help in this matter?
    > Thanks, Ian
    >

    Paul Whitham TMM 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