Help with RecordSet filtering

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

  1. #1

    Default Help with RecordSet filtering

    Hi all,

    I have a page with a recordset built that displays the data from my releases
    database.
    The purpose of this page is to show people all the applications that are being
    released within each release.
    an example would be: we may have a release on 3/21, and then another one on
    4/25, and so on..

    Please see my MS Access DB structure below:

    ------------------------------
    (DB) releases.mdb

    (tbl) ReleaseDates
    (fld) rlsDatesID (linked)
    (fld) ReleaseDate

    (tbl) Releases
    (fld) Application
    (fld) Time Created
    (fld) Description
    (fld) Contact Info
    (fld) releaseDate (linked)
    -------------------------------

    currently, this the recordset listed below display ALL applications in the DB,
    and I would like it to filter based on a release date (3/21 or 4/25) selected
    using a dropdown form on the page.
    The dropdown will pull all available release dates from the 'ReleaseDates'
    table.

    -----------------------------------------------------------------
    <%
    Dim releasesRS
    Dim releasesRS_numRows

    Set releasesRS = Server.CreateObject("ADODB.Recordset")
    releasesRS.ActiveConnection = MM_releases_STRING
    releasesRS.Source = "SELECT Releases.*, Resource.Resource FROM Releases LEFT
    JOIN Resource ON Releases.Resource = Resource.resourceID ORDER BY Application
    ASC"
    releasesRS.CursorType = 0
    releasesRS.CursorLocation = 2
    releasesRS.LockType = 1
    releasesRS.Open()

    releasesRS_numRows = 0
    %>
    -----------------------------------------------------------------

    Any help on this would be much appreciated, guys.
    If you have any ideas, I will try them.

    Thanks in advance!
    George

    slakker01 Guest

  2. Similar Questions and Discussions

    1. PHP Recordset Filtering
      I am making my index page as a blog, and I want the most recent entry to display completely, then have the entries that were previous to display...
    2. filtering by Date in Recordset
      I want to filter displayed records,showing only dates equal to or greater than "today". SELECT * FROM tblEvents WHERE eventDate >= **** this...
    3. Filtering a recordset
      Hi, I have a database query that pulls out records from a business directory database. In the DB are fields like ratings, company name, and...
    4. filtering recordset
      I am trying to pull a recordset that has the following items: ID Name Description Image1 Image2 Image3 DateAdded Is there anyway that I could pull...
    5. Filtering a recordset with a Checkbox
      I filter a recordset like this WHERE recshow = 'yes' And with text fields in my Access database it works fine but THIS TIME I want to do it with a...
  3. #2

    Default Re: Help with RecordSet filtering

    What specific problem are you running into?

    --
    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]

    "slakker01" <webforumsuser@macromedia.com> wrote in message
    news:d2bu4j$7ss$1@forums.macromedia.com...
    > Hi all,
    >
    > I have a page with a recordset built that displays the data from my
    releases
    > database.
    > The purpose of this page is to show people all the applications that are
    being
    > released within each release.
    > an example would be: we may have a release on 3/21, and then another one
    on
    > 4/25, and so on..
    >
    > Please see my MS Access DB structure below:
    >
    > ------------------------------
    > (DB) releases.mdb
    >
    > (tbl) ReleaseDates
    > (fld) rlsDatesID (linked)
    > (fld) ReleaseDate
    >
    > (tbl) Releases
    > (fld) Application
    > (fld) Time Created
    > (fld) Description
    > (fld) Contact Info
    > (fld) releaseDate (linked)
    > -------------------------------
    >
    > currently, this the recordset listed below display ALL applications in
    the DB,
    > and I would like it to filter based on a release date (3/21 or 4/25)
    selected
    > using a dropdown form on the page.
    > The dropdown will pull all available release dates from the
    'ReleaseDates'
    > table.
    >
    > -----------------------------------------------------------------
    > <%
    > Dim releasesRS
    > Dim releasesRS_numRows
    >
    > Set releasesRS = Server.CreateObject("ADODB.Recordset")
    > releasesRS.ActiveConnection = MM_releases_STRING
    > releasesRS.Source = "SELECT Releases.*, Resource.Resource FROM Releases
    LEFT
    > JOIN Resource ON Releases.Resource = Resource.resourceID ORDER BY
    Application
    > ASC"
    > releasesRS.CursorType = 0
    > releasesRS.CursorLocation = 2
    > releasesRS.LockType = 1
    > releasesRS.Open()
    >
    > releasesRS_numRows = 0
    > %>
    > -----------------------------------------------------------------
    >
    > Any help on this would be much appreciated, guys.
    > If you have any ideas, I will try them.
    >
    > Thanks in advance!
    > George
    >

    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