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

Query Help 1

Status
Not open for further replies.

jalenben1

Programmer
Jul 22, 2008
154
US
I have a query in Access and I need help on a formula. I have a feild called DateCreated and I would like to create a formula in the query with a fieldname called Week Beginning in which the beginning of the week would start off as 1/1/2011 based off the DateCreated fieldname; next create a formula in the query with a fieldname called Week Ending in which the ending of the week would end on 1/7/2011 based off the DateCreated fieldname. So I would have a fieldname called Week Beginning and Week Ending. The last field name I would like to create is Month. This would be based off of the Restoral Date. Let's say a restoral date is 1/31/2011; I would like to have a formula that would take the "mm" to say January. In this case 1/31/2011 the "MM" is 1 which would be January. So that makes it 3 field names I would need help to create in my existing query.
 
I am thinking that I can format the date to show in the format mm/dd/yyyy in the textbox in a form. Eventually from the query I will used those two date fileds in a form. Am I on the right track?
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top