Ask a Question related to ASP, Design and Development.
-
Simon Wigzell #1
Date driven data display
My client has an annual calendar of events consisting of a record for each
event, key field is the event date saved as a date type field. They would
like the display to start with the current month, list to the end of the
year then start the beginning of the year and list up to the current month.
How does one retrieve data based on date? I guess I'd like something like :
SELECT * FROM EVENTS WHERE [month is greater than or equal to the current
month] ORDER BY Date
Then :
SELECT * FROM EVENTS WHERE [month is less than the current month] ORDER BY
Date
What is the syntax for the month bits between the []?
Thanks!
Simon Wigzell Guest
-
Data Driven Graphics
I have found a few problems. I used the same apple script. It works fine but "illustrator" gives an error on reading an XML file with special... -
Data-driven graphics
Hi, I'm Dan and i am trying to build catalogue and web pages from the same database. I'm wondering if the software filemakerpro would be programme to... -
Data-driven Graphics Wizard error
I keep getting this error message when using the wizard to export one of my files: "An error occured. The command requires an active document." ... -
Data driven graphics and image masks - Help!
Help! I'm working on a web project where I want to generate page headers from information pulled from an XML file. Everything generates properly... -
Display data from database in a scrollable data grid on an ASP Page
Hi All, I want to display data from database in a scrollable data grid on an ASP Page. I want to use it for entering data also. Should i have to... -
Dan Brussee #2
Re: Date driven data display
On Fri, 17 Oct 2003 00:14:17 GMT, "Simon Wigzell"
<simonwigzell@shaw.ca> wrote:
Hints:>My client has an annual calendar of events consisting of a record for each
>event, key field is the event date saved as a date type field. They would
>like the display to start with the current month, list to the end of the
>year then start the beginning of the year and list up to the current month.
>How does one retrieve data based on date? I guess I'd like something like :
>
>SELECT * FROM EVENTS WHERE [month is greater than or equal to the current
>month] ORDER BY Date
>
>Then :
>
>SELECT * FROM EVENTS WHERE [month is less than the current month] ORDER BY
>Date
>
>What is the syntax for the month bits between the []?
>
>Thanks!
>
The first day of the current month is:
DateSerial(year(now), month(now), 1)
The last day of the previous month one year from now is:
DateSerial(year(now) + 1, month(now) , 0)
SELECT * FROM EVENTS WHERE
EventDate >= 'FirstOfCurrentMonth'
AND
EventDate <= 'LastOfPrevMonthPlus1Year'
ORDER BY EventDate
Another suggestion... Do not name a field "Date".
Dan Brussee Guest
-
Simon Wigzell #3
Re: Date driven data display
"Dan Brussee" <dbrussee@NOSPAMnc.rr.com> wrote in message
news:kdluovck36fgfahb4su8pcmln5prvs77p2@4ax.com...each> On Fri, 17 Oct 2003 00:14:17 GMT, "Simon Wigzell"
> <simonwigzell@shaw.ca> wrote:
>> >My client has an annual calendar of events consisting of a record formonth.> >event, key field is the event date saved as a date type field. They would
> >like the display to start with the current month, list to the end of the
> >year then start the beginning of the year and list up to the current:> >How does one retrieve data based on date? I guess I'd like something likeBY> >
> >SELECT * FROM EVENTS WHERE [month is greater than or equal to the current
> >month] ORDER BY Date
> >
> >Then :
> >
> >SELECT * FROM EVENTS WHERE [month is less than the current month] ORDERThanks, I'll try that, and "Date" was just for the example, thanks.>> >Date
> >
> >What is the syntax for the month bits between the []?
> >
> >Thanks!
> >
> Hints:
> The first day of the current month is:
> DateSerial(year(now), month(now), 1)
>
> The last day of the previous month one year from now is:
> DateSerial(year(now) + 1, month(now) , 0)
>
> SELECT * FROM EVENTS WHERE
> EventDate >= 'FirstOfCurrentMonth'
> AND
> EventDate <= 'LastOfPrevMonthPlus1Year'
> ORDER BY EventDate
>
> Another suggestion... Do not name a field "Date".
>
Simon Wigzell Guest



Reply With Quote

