Results 1 to 6 of 6
  1. #1
    metokushika is offline Novice
    Windows 7 32bit Access 2007
    Join Date
    Oct 2011
    Posts
    19

    Talking date to month

    hi all,




    i have a form that continuously lists down the date of when the employee logs in and out.

    now, i already made a daily report about it regarding what day they choose
    to see who logged on for that day.

    what i need is i have to make a report by month but i don't know how.


    when using the daily report, i used a combo box from where the user can choose.


    is there any way where i could make a combo box which chooses only by month instead of by day?



    any help will be greatly appreciated. thanks.




  2. #2
    Robeen is offline VIP
    Windows XP Access 2010 32bit
    Join Date
    Mar 2011
    Location
    Tulsa, Oklahoma.
    Posts
    1,596
    Can you explain in a little more detail about your combo box?

    Is it getting data from a table?

    Is it already displayting dates - and you want to take only the MONTH portion of the dates being displayed and use it to filter your report?

    Or the Month/Year portion of the dates?

  3. #3
    metokushika is offline Novice
    Windows 7 32bit Access 2007
    Join Date
    Oct 2011
    Posts
    19

    Talking

    yes! it's exactly how it is.


    it displays the dates and now i just want to make a report that could display by month.

  4. #4
    dblife's Avatar
    dblife is offline Competent Performer
    Windows XP Access 2003
    Join Date
    Nov 2011
    Location
    South Shields, UK
    Posts
    104
    You could create an additional field in the reports source query to show month number using DatePart() and then set the criteria of this new field to =[What Month Number]
    When you run the report (and underlying query) the query criteria will ask for a month number.
    You will get only the results for that month number.

  5. #5
    Robeen is offline VIP
    Windows XP Access 2010 32bit
    Join Date
    Mar 2011
    Location
    Tulsa, Oklahoma.
    Posts
    1,596
    There might be an issue with what dblife is suggesting if you have dates spanning more than one year.

    For instance, if you ask for dates with Month 11 and you have November dates from 2011, 2010 and 2009 - you will get records from all three years.

    Will that be acceptable? Or is it even an issue?

    So - my question is - when your users select a month, do you want them to have to select a month from a particular year?

  6. #6
    dblife's Avatar
    dblife is offline Competent Performer
    Windows XP Access 2003
    Join Date
    Nov 2011
    Location
    South Shields, UK
    Posts
    104
    Very good point Robeen - best create two date choice columns to ask year and week number. Method is the same.

Please reply to this thread with any new information or opinions.

Similar Threads

  1. Month/Month to date
    By Tony McGuire in forum Queries
    Replies: 9
    Last Post: 09-20-2011, 11:54 AM
  2. Separating a date into day, month and year
    By teirrah1995 in forum Reports
    Replies: 3
    Last Post: 07-17-2011, 02:17 PM
  3. Current Month and Year-To-Date
    By DSnipeFunk in forum Access
    Replies: 4
    Last Post: 05-31-2011, 11:38 AM
  4. Date Comparison swapping month and day in VB
    By Mary Fall in forum Access
    Replies: 5
    Last Post: 04-21-2011, 06:31 AM
  5. Month To Date Query
    By jmorse in forum Queries
    Replies: 3
    Last Post: 03-11-2011, 11:25 AM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
Other Forums: Microsoft Office Forums