Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations gkittelson on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Find the Value of Two dates!!

Status
Not open for further replies.

nishet

Programmer
Mar 28, 2001
4
GB
I am using access 2000. I am aware their is a field called DateDiff.

I have two fields one is HolidayStartDate and the other is HolidayEndDate. I want to work out in the third field the Total NumofDays, this 3rd field should be automatically displayed with an answer once field 1 and 2 have been entered. Please can you show me how to write the sql query.

Cheers Nish
Programmer

P.S. Please show me, using the fields I have provided.

1) HolidayEndDate
2) HolidayStartDate
3) NumOfDays
 
update yourTableWithHolidays
set NumOfDays = datediff(d, HolidayStartDate, HolidayEndDate) John Fill
1c.bmp


ivfmd@mail.md
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top