L
Linda
I have the following system.
Every 2 months we read in invoices that we import into an
access table. For example for the month of March we
needed to find out how many days there are in March. That
was simple by using DateSerial : Day(DateSerial(Year
([InvoiceDate]),Month([InvoiceDate]),0))This returns 31.
Now the thing is that I have a column where EndDates are
stored in and whenever for example there are enddates
that are less then the end of the Invoice Month (March)
the difference of the nr of days need to be calculated.
Let's say that there is an enddate that is = #03/15/2004#
then the difference should be 31 - #03/15/2004# which
should be 16. Is there a way to calculate these
differences using a Select Query? TIA.
Every 2 months we read in invoices that we import into an
access table. For example for the month of March we
needed to find out how many days there are in March. That
was simple by using DateSerial : Day(DateSerial(Year
([InvoiceDate]),Month([InvoiceDate]),0))This returns 31.
Now the thing is that I have a column where EndDates are
stored in and whenever for example there are enddates
that are less then the end of the Invoice Month (March)
the difference of the nr of days need to be calculated.
Let's say that there is an enddate that is = #03/15/2004#
then the difference should be 31 - #03/15/2004# which
should be 16. Is there a way to calculate these
differences using a Select Query? TIA.