Hi Ed,
I think that's te best solution to my problem. I don't understand your
query-=instructions though.
In my case a simple query to show the number and the date fields of my
database would be:
SELECT [Dossiers].NUMMER, [Dossiers].REG_DAT FROM [Dossiers];
Dossiers is the table,
NUMMER is a numberfield autonumbered by access
REG_DAT is a datefield (as registration date) also autofilled by access
How do I go about to let this query show only the number and the year
of
the
field REG_DAT?
TIA
Willem
"Ed Warren" <
[email protected]> schreef in bericht
Store the field value as a date (much more useful than just a year).
Access the data through a query in Access e.g. qryYear:
FieldYear:Year([fielddate])
ASP will be happy to show the year.
Ed Warren
As Ed indicated in his post, you can use:
FieldYear:Year([fielddate])
So, your query would be:
SELECT [Dossiers].NUMMER, RegYear:Year(REG_DAT) FROM [Dossiers];
That way you will only get the year of the registration.