Powerhouse123
IS-IT--Management
Hi,
I have a very simply Table...
ID, NAME, ISSUE DATE, EXPIRY DATE
1 Bob 01/01/2004
2 Dave 23/04/1998
3 Jim 02/01/2004
4 Scott 05/11/2007
5 Keith 06/03/1995
The expiry column is blank because this is calculated in the query...
Expiry Date: DateSerial(Year([Issue Date])+3,Month([Issue Date]),Day([Issue Date]))
This simply adds three years to the Issue Date
So the query is a simple select query selectind ID, Name, Issue Date and the Expiry Date is calculated. This works fine. The resultant query results look like..
ID NAME ISSUE DATE EXPIRY DATE
1 Bob 01/01/2004 01/01/2007
2 Dave 23/04/1998 23/04/2001
3 Jim 02/01/2004 02/01/2007
4 Scott 05/11/2007 05/11/2010
5 Keith 06/03/1995 06/03/1998
Great...but...
I want to be able to select a range of Expiry Dates say all thjose which fall in January so in the criteria field of the Expiry field in the query I have...
Between [Please enter start date] AND [Please enter end date]
This brings up the boxes fine but when selecting a range from 01/01/2007 to 31/01/2007, it brings back all the records and not just Bob and Jim like it should.
Do you have any suggestions, it should be so simple.
Many thanks in advance.
I have a very simply Table...
ID, NAME, ISSUE DATE, EXPIRY DATE
1 Bob 01/01/2004
2 Dave 23/04/1998
3 Jim 02/01/2004
4 Scott 05/11/2007
5 Keith 06/03/1995
The expiry column is blank because this is calculated in the query...
Expiry Date: DateSerial(Year([Issue Date])+3,Month([Issue Date]),Day([Issue Date]))
This simply adds three years to the Issue Date
So the query is a simple select query selectind ID, Name, Issue Date and the Expiry Date is calculated. This works fine. The resultant query results look like..
ID NAME ISSUE DATE EXPIRY DATE
1 Bob 01/01/2004 01/01/2007
2 Dave 23/04/1998 23/04/2001
3 Jim 02/01/2004 02/01/2007
4 Scott 05/11/2007 05/11/2010
5 Keith 06/03/1995 06/03/1998
Great...but...
I want to be able to select a range of Expiry Dates say all thjose which fall in January so in the criteria field of the Expiry field in the query I have...
Between [Please enter start date] AND [Please enter end date]
This brings up the boxes fine but when selecting a range from 01/01/2007 to 31/01/2007, it brings back all the records and not just Bob and Jim like it should.
Do you have any suggestions, it should be so simple.
Many thanks in advance.