count nr of days

  • Thread starter Thread starter Guest
  • Start date Start date
G

Guest

Is there a way to count the nr of days when reading a date mm/dd/yyyy in a
recordset? for example when reading 09/22/2006 it should put 30 into another
variable. Thanks for any help on this.
 
Eric,

SELECT Day(DateSerial(Year([somedate]),Month([somedate])+1,0)) AS MonthDays
FROM tblMyTable

Regards,
Graham R Seach
Microsoft Access MVP
Sydney, Australia
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Back
Top