Results 1 to 5 of 5

Thread: [RESOLVED] How to format to Just Year in MS Access

  1. #1

    Thread Starter
    Frenzied Member FishGuy's Avatar
    Join Date
    Mar 2005
    Location
    Bradford UK
    Posts
    1,708

    Resolved [RESOLVED] How to format to Just Year in MS Access

    Hi,
    I have a date value i.e 29/09/2005,
    I understand that I can format this in the underlying query to be just 2005. So I can Order by it.

  2. #2
    Software Carpenter dee-u's Avatar
    Join Date
    Feb 2005
    Location
    Pinas
    Posts
    11,127

    Re: How to format to Just Year in MS Access

    have you tried Year(Field)?
    Regards,


    As a gesture of gratitude please consider rating helpful posts. c",)

    Some stuffs: Mouse Hotkey | Compress file using SQL Server! | WPF - Rounded Combobox | WPF - Notify Icon and Balloon | NetVerser - a WPF chatting system

  3. #3

    Thread Starter
    Frenzied Member FishGuy's Avatar
    Join Date
    Mar 2005
    Location
    Bradford UK
    Posts
    1,708

    Re: How to format to Just Year in MS Access

    In the query designer in the field column it tried
    YEAR(DATE OF DELIVERY)
    It tells me the expression I entered contains invalid syntax.

  4. #4

    Thread Starter
    Frenzied Member FishGuy's Avatar
    Join Date
    Mar 2005
    Location
    Bradford UK
    Posts
    1,708

    Re: How to format to Just Year in MS Access

    Works.
    InstallDate: Year([DATE OF DELIVERY])

  5. #5
    Software Carpenter dee-u's Avatar
    Join Date
    Feb 2005
    Location
    Pinas
    Posts
    11,127

    Re: [RESOLVED] How to format to Just Year in MS Access

    If your field name have spaces then it's a rule to enclose them in brackets...

    Glad it worked.
    Regards,


    As a gesture of gratitude please consider rating helpful posts. c",)

    Some stuffs: Mouse Hotkey | Compress file using SQL Server! | WPF - Rounded Combobox | WPF - Notify Icon and Balloon | NetVerser - a WPF chatting system

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width