A Microsoft Office (Excel, Word) forum. OfficeFrustration

If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below.

Go Back   Home » OfficeFrustration forum » Microsoft Access » Running & Setting Up Queries
Site Map Home Register Authors List Search Today's Posts Mark Forums Read  

Date - Beginning of Month



 
 
Thread Tools Display Modes
  #1  
Old July 6th, 2008, 07:15 AM posted to microsoft.public.access.queries
Chris Gorham
external usenet poster
 
Posts: 13
Default Date - Beginning of Month

Hi,

simple one - I need to calculate the date of the begining of the month for
the date Post Date which is in another field of the query.

Tried this - Date("01",month([Post Date]),year([Post Date]) and variants of
this expresson but no avail...

month([Post Date]) and year([Post date]) both work and return the serial
number of the month and year of Post Date, but I can't string them together
to return a date

Thks...Chris
  #2  
Old July 6th, 2008, 08:15 AM posted to microsoft.public.access.queries
Rob Parker
external usenet poster
 
Posts: 701
Default Date - Beginning of Month

DateSerial(Year([Post Date]),Month([Post Date]),1)

Rob


Chris Gorham wrote:
Hi,

simple one - I need to calculate the date of the begining of the
month for the date Post Date which is in another field of the query.

Tried this - Date("01",month([Post Date]),year([Post Date]) and
variants of this expresson but no avail...

month([Post Date]) and year([Post date]) both work and return the
serial number of the month and year of Post Date, but I can't string
them together to return a date

Thks...Chris

 




Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Forum Jump


All times are GMT +1. The time now is 11:39 AM.


Powered by vBulletin® Version 3.6.4
Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Copyright ©2004-2024 OfficeFrustration.
The comments are property of their posters.