Results 1 to 4 of 4
  1. #1
    Lrap is offline Novice
    Windows 7 64bit Access 2010 64bit
    Join Date
    Sep 2013
    Posts
    2

    Ordering My Header in a Report


    I want to order my report by my month field. I only have the month to input so the data type is in text. I can't get it to order in the correct month, right now it's april, june, may. It's ordering by alphabetical. How can I get the header to order it by April, May, June. Ordering in the table view doesn't matter the report just orders it by alphabetical letter.

  2. #2
    ItsMe's Avatar
    ItsMe is offline Sometimes Helpful
    Windows XP Access 2003
    Join Date
    Aug 2013
    Posts
    7,862
    Quote Originally Posted by Lrap View Post
    ......the data type is in text.
    I would focus on this information right here.

    Is there an explanation why this is the case?

  3. #3
    Lrap is offline Novice
    Windows 7 64bit Access 2010 64bit
    Join Date
    Sep 2013
    Posts
    2
    All I have is the Month, you can't just put just the month in Date/time data type, need day and year which I don't have.

  4. #4
    ItsMe's Avatar
    ItsMe is offline Sometimes Helpful
    Windows XP Access 2003
    Join Date
    Aug 2013
    Posts
    7,862
    There is more than one way to go about it. My preferred method is to create a table dedicated to something I want in a specific order. In this case, it would be a table with two columns. One column is the primary key and the other column is the text field to hold each month's name.

    In the end this table will only ever have 12 records. You can assign integer as a data type to your table's PK and type in the number for each record that will represent a specific month. There is no need to use AutoNumber in this case.

    With that you can sort the PK AtoZ and querry the record using a foreign key value from another table or recordset.

    Hope that helps a little. It might not help if you already have a complex DB with lots of info. You can use update queries to fix data and FK firlds.

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

Similar Threads

  1. Replies: 2
    Last Post: 06-15-2012, 07:32 AM
  2. How do I add a field to report header
    By jscriptor09 in forum Reports
    Replies: 3
    Last Post: 12-06-2011, 05:29 AM
  3. Report Header
    By kwooten in forum Reports
    Replies: 2
    Last Post: 08-03-2011, 11:31 AM
  4. report header
    By nashr1928 in forum Reports
    Replies: 2
    Last Post: 07-13-2010, 12:34 PM
  5. Replies: 5
    Last Post: 06-30-2009, 09:30 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