Ask a Question related to Dreamweaver AppDev, Design and Development.
-
slakker01 #1
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
-
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... -
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... -
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... -
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... -
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... -
Paul Whitham TMM #2
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...releases> Hi all,
>
> I have a page with a recordset built that displays the data from mybeing> database.
> The purpose of this page is to show people all the applications that areon> released within each release.
> an example would be: we may have a release on 3/21, and then another onethe DB,> 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 inselected> and I would like it to filter based on a release date (3/21 or 4/25)'ReleaseDates'> using a dropdown form on the page.
> The dropdown will pull all available release dates from theLEFT> table.
>
> -----------------------------------------------------------------
> <%
> Dim releasesRS
> Dim releasesRS_numRows
>
> Set releasesRS = Server.CreateObject("ADODB.Recordset")
> releasesRS.ActiveConnection = MM_releases_STRING
> releasesRS.Source = "SELECT Releases.*, Resource.Resource FROM ReleasesApplication> JOIN Resource ON Releases.Resource = Resource.resourceID ORDER BY> 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



Reply With Quote

