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 Mike Lewis on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

First day of month 1

Status
Not open for further replies.

pjtarheel

Technical User
Jan 14, 2005
14
US
Hey,

How do I get a query to return the first day of the month for a given date? I've got a membership table with member start dates that land on all days of the month, and I want to group them all by the first day of the month. Has to be the first day because we have other tables where the member dates all fall on the first, so all reports are set up around that.

Thanks!

Paul
 
Hi,

whatever your date field...
[tt]
dateserial(year([datefield]), month([datefield]), 1)
[/tt]


Skip,
[sub]
[glasses] [red]Be advised:[/red] The dyslexic, agnostic, insomniac, lays awake all night wondering...
"Is there really a DOG?" [tongue][/sub]
 
Perfect! Thanks! I have searched far and wide for how to do this. This website is great!
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top