Page 2 of 2 FirstFirst 12
Results 16 to 22 of 22
  1. #16
    pbaldy's Avatar
    pbaldy is offline Who is John Galt?
    Windows XP Access 2007
    Join Date
    Feb 2010
    Location
    Nevada, USA
    Posts
    22,521
    I'm sorry, that's a brain cramp on my part. Format would work on the original date field. For the month integer:



    =MonthName([MonthSort])
    Paul (wino moderator)
    MS Access MVP 2007-2019
    www.BaldyWeb.com

  2. #17
    nkuebelbeck is offline Advanced Beginner
    Windows 7 Access 97
    Join Date
    Mar 2010
    Posts
    91

    monthname

    tried that. MonthName is not a valid function in access 97.

  3. #18
    pbaldy's Avatar
    pbaldy is offline Who is John Galt?
    Windows XP Access 2007
    Join Date
    Feb 2010
    Location
    Nevada, USA
    Posts
    22,521
    Presuming the original date field is in the data, you can use the Format() function on that.
    Paul (wino moderator)
    MS Access MVP 2007-2019
    www.BaldyWeb.com

  4. #19
    nkuebelbeck is offline Advanced Beginner
    Windows 7 Access 97
    Join Date
    Mar 2010
    Posts
    91

    then i lose ability to sort

    I am using the monthsort: month([Datefield]) in the query, if i use anything else here i lose the ability to sort by month.

    In the report I try to use monthname([Monthsort]) - no dice I get error

    I know I could just use a combo box, by that seems over complicated.....

    Where did you want me to try to format()?

  5. #20
    pbaldy's Avatar
    pbaldy is offline Who is John Galt?
    Windows XP Access 2007
    Join Date
    Feb 2010
    Location
    Nevada, USA
    Posts
    22,521
    I assume that DateField is still returned by the query, so a textbox in the report:

    =Format(DateField, "mmmm")

    Since it looks like you may be grouping in the report, if you're already grouping on month an year, you may be able to add a similar field in the query without affecting the result. If not, then another idea is:

    =Format(DateSerial(YearSort, MonthSort, 1), "mmmm")
    Paul (wino moderator)
    MS Access MVP 2007-2019
    www.BaldyWeb.com

  6. #21
    nkuebelbeck is offline Advanced Beginner
    Windows 7 Access 97
    Join Date
    Mar 2010
    Posts
    91
    little confused. I am using both year() and month() in the query to extract and sort accordingly on one date field. so I can group by year, and by month

  7. #22
    nkuebelbeck is offline Advanced Beginner
    Windows 7 Access 97
    Join Date
    Mar 2010
    Posts
    91

    OK

    I just used a combo box and a lookup table. Need to move on

Page 2 of 2 FirstFirst 12
Please reply to this thread with any new information or opinions.

Similar Threads

  1. month function..
    By thewabit in forum Programming
    Replies: 13
    Last Post: 04-19-2010, 10:01 PM
  2. Replies: 3
    Last Post: 12-23-2009, 08:50 AM
  3. Simple Report by Month
    By leejqs in forum Reports
    Replies: 3
    Last Post: 07-15-2009, 09:24 AM
  4. SQL Query by day to end of month
    By tcasey in forum Queries
    Replies: 0
    Last Post: 10-07-2008, 09:55 PM
  5. Total no of days in a month
    By wasim_sono in forum Forms
    Replies: 4
    Last Post: 10-15-2006, 01:05 PM

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