B
Blah
Hi all
I have what I thought would be a simple query, but it's doing my head in.
I am using Frontpage 2002, and an Access 2000 database. This is a custom
query for displaying a certain years Lottery bonus ball winners, the year
being input on a separate page.
Consider this:
SELECT FORMAT(won,'dd mmm yyyy'), winner, amount, id
FROM bonus
WHERE (YEAR(won)) =
:input:
ORDER BY won DESC
::input:: is an integer passed from a form on another page, and I'm lead to
believe that YEAR outputs an integer. If I substitute
:input:
for a
year, it works fine. But, no matter how much tweaking of syntax I do, I
just cannot get it to work with ::input::
Can anyone throw light on this ?
Thanks in advance . . .
Cheers
Alex
I have what I thought would be a simple query, but it's doing my head in.
I am using Frontpage 2002, and an Access 2000 database. This is a custom
query for displaying a certain years Lottery bonus ball winners, the year
being input on a separate page.
Consider this:
SELECT FORMAT(won,'dd mmm yyyy'), winner, amount, id
FROM bonus
WHERE (YEAR(won)) =
ORDER BY won DESC
::input:: is an integer passed from a form on another page, and I'm lead to
believe that YEAR outputs an integer. If I substitute
year, it works fine. But, no matter how much tweaking of syntax I do, I
just cannot get it to work with ::input::
Can anyone throw light on this ?
Thanks in advance . . .
Cheers
Alex