Results 1 to 4 of 4
  1. #1
    thewabit is offline Advanced Beginner
    Windows XP Access 2003
    Join Date
    Jan 2010
    Posts
    36

    new issue...graphs


    How would I write a function or a module to tell a month that is displayed in the table as a number to display on the graph as abbreviations such as Oct, Nov, Jan, etc?

  2. #2
    Guus2005's Avatar
    Guus2005 is offline Carbon based thingy
    Windows 7 Access 2003
    Join Date
    Jan 2010
    Location
    the netherlands
    Posts
    42
    The format command will return the month if you enter a date.
    To provide the date if you only have a number, convert the number to a date using the dateserial command. Year(1) and Day(1) numbers are necessary but obsolete.
    Code:
    format(dateserial(1, intmonth, 1),"mmm")
    HTH

  3. #3
    thewabit is offline Advanced Beginner
    Windows XP Access 2003
    Join Date
    Jan 2010
    Posts
    36
    Thanks Guus,

    Would that be a public function?

  4. #4
    Guus2005's Avatar
    Guus2005 is offline Carbon based thingy
    Windows 7 Access 2003
    Join Date
    Jan 2010
    Location
    the netherlands
    Posts
    42
    Format and Dateserial are Access build-in functions.
    You can use them in a user defined function or in a query:
    Code:
    select format(dateserial(1, [MonthField], 1),"mmm") as MonthTxt From table1
    Where monthfield is the field where the month is stored.

    Enjoy!

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

Similar Threads

  1. Graphs
    By thewabit in forum Forms
    Replies: 1
    Last Post: 01-17-2010, 10:52 PM
  2. Using running total in query to create graphs
    By maggioant in forum Queries
    Replies: 4
    Last Post: 10-02-2009, 05:58 AM
  3. Help with Graphs.
    By Rameez in forum Access
    Replies: 0
    Last Post: 06-29-2009, 01:41 AM
  4. Keep together issue (Access 12)
    By alpha in forum Reports
    Replies: 2
    Last Post: 06-02-2009, 08:21 AM
  5. new issue about autoincreasednum
    By tinytree in forum Queries
    Replies: 0
    Last Post: 05-06-2009, 09:28 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