Exit
  • Global community
    • Language:
      • Deutsch
      • English
      • Español
      • Français
      • Português
  • 日本語コミュニティ
  • 한국 커뮤니티
0

Filter recordset by date ?

Guest
Sep 11, 2006 Sep 11, 2006
Hi - using asp/access/vbscript

I have a db table with a lot of records, all different dates.
How can I filter a recordset - only display todays records (filter by date where today is default )

Any?

Bjørn.
TOPICS
Server side applications
523
Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
LEGEND ,
Sep 11, 2006 Sep 11, 2006
Simply write a SQL statement like this

Select * from tablename
Where DateField = Date()

--
Paul Whitham
Certified Dreamweaver MX2004 Professional
Adobe Community Expert - Dreamweaver

Valleybiz Internet Design
www.valleybiz.net

"btn" <webforumsuser@macromedia.com> wrote in message
news:ee4l34$oqj$1@forums.macromedia.com...
> Hi - using asp/access/vbscript
>
> I have a db table with a lot of records, all different dates.
> How can I filter a recordset - only display todays records (filter by date
> where today is default )
>
> Any?
>
> Bj�rn.
>


Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Guest
Sep 12, 2006 Sep 12, 2006
Hi.
Thanx for reply - still have a problem

I use

SELECT *
FROM program
WHERE Dato = Date()

This works great on my local computer (Europe) - but when uploading file and test on server (US), i get no records displayed - (but they are there).

Any idea ?

Bjørn.
Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
LEGEND ,
Sep 12, 2006 Sep 12, 2006
LATEST
probably it has to do with differences in date format between remote
server and the local one. how do you store dates? remember in the states
the standard is MM/DD/YEAR

btn wrote:
> Hi.
> Thanx for reply - still have a problem
>
> I use
>
> SELECT *
> FROM program
> WHERE Dato = Date()
>
> This works great on my local computer (Europe) - but when uploading file and
> test on server (US), i get no records displayed - (but they are there).
>
> Any idea ?
>
> Bj?rn.
>
>
Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines