Results 1 to 3 of 3
  1. #1
    2 Star Lounger
    Join Date
    Nov 2004
    Location
    London, United Kingdom
    Posts
    152
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Dsum date format (2000)

    Hi.

    I have the following formula in a text box on a form
    =DSum('[Amount]','[ClientTransactions]',' <transDate> <# ' & [Forms]![frmdlgClientTransactions]![txtStart] & '#')
    The formula works but the date format I am using on the form is dd/mm/yy and the date format that the function uses is mm/dd/yy.
    Is there anything that I can do to get the function to use my date format?

    Any help is much appreciated.

  2. #2
    Plutonium Lounger
    Join Date
    Mar 2002
    Posts
    84,353
    Thanks
    0
    Thanked 29 Times in 29 Posts

    Re: Dsum date format (2000)

    Try this:

    =DSum('[Amount]','[ClientTransactions]',' <# ' & Format([Forms]![frmdlgClientTransactions]![txtStart],"mm/dd/yyyy") & '#')

  3. #3
    2 Star Lounger
    Join Date
    Nov 2004
    Location
    London, United Kingdom
    Posts
    152
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Re: Dsum date format (2000)

    Hans

    Thank you so much, you have come up trumps again!

Posting Permissions

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