First of the month in queries

  • Thread starter Thread starter norm
  • Start date Start date
N

norm

I have several queries that look at a particular table that is imported the
first of every month, the queries then run and will give an inventory of
specific categories in the table. Right now I manually edit all the queries
to reflect my "D/L Date" field to the first of every month, but the queries
are getting to be many..and there is crosstabs quries involved also...what I
would like to do is have my "D/L date" field to default to the first day of
the current month that we are in..
Thanks in adavance for your help
 
You can use the DateSerial function as in this example ...

SELECT tblTest.*, DateSerial(Year(Date()),Month(Date()),1) AS FirstOfMonth
FROM tblTest;
 

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

Similar Threads

Crosstab Query & Month Names 3
Excel Date of first friday every month 3
Month, DATE, Week 7
dynamically choose columns in query 1
update query 2
Cross tab query solution 4
Parameter month query 4
Monthly quantities to Weekly 1

Back
Top