I
Ivyleaf
Hi all,
I am having great trouble with what I thought would be a simple query
and hopefully there is someone out there that may be able to shed a
little light on my problem.
I have (among many other things) a table in my database which lists
staff details (names, classifications, start dates etc). What I am
trying to do is extract a list of staff who are current (no Cease
Date) or who are ceased, but ceased in this financial year. My SQL is
as follows:
SELECT [Full CAS Listing].Ident, [Full CAS Listing].[Full Name], [Full
CAS Listing].DesGS, [Full CAS Listing].[EFT/Ratio]
FROM [Full CAS Listing]
WHERE DateValue(nz([Cease
Date],#1/1/1980#))>DateSerial(Year(DateAdd("m",-6,Now())),6,30);
If I can get this bit working, I can add the rest that will give me
what I want. I have also tried all incarnations of the criteria
expression that I can think of, but to no avail.
Many thanks to all!
I am having great trouble with what I thought would be a simple query
and hopefully there is someone out there that may be able to shed a
little light on my problem.
I have (among many other things) a table in my database which lists
staff details (names, classifications, start dates etc). What I am
trying to do is extract a list of staff who are current (no Cease
Date) or who are ceased, but ceased in this financial year. My SQL is
as follows:
SELECT [Full CAS Listing].Ident, [Full CAS Listing].[Full Name], [Full
CAS Listing].DesGS, [Full CAS Listing].[EFT/Ratio]
FROM [Full CAS Listing]
WHERE DateValue(nz([Cease
Date],#1/1/1980#))>DateSerial(Year(DateAdd("m",-6,Now())),6,30);
If I can get this bit working, I can add the rest that will give me
what I want. I have also tried all incarnations of the criteria
expression that I can think of, but to no avail.
Many thanks to all!