Results 1 to 3 of 3

Thread: Dcount (97 sr2)

  1. #1
    Lounger
    Join Date
    Feb 2001
    Posts
    29
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Dcount (97 sr2)

    Can someone tell what is wrong with this syntex. It is returning the count of all the records and not taking the criteria into account.

    DCount("[lastdate]", "datesgenerated", "[lastdate]" <= Me![CBODATE])

    Thank you so very much

  2. #2
    Gold Lounger
    Join Date
    Feb 2001
    Location
    Sint Niklaas, Belgium
    Posts
    2,778
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Re: Dcount (97 sr2)

    Try :
    <pre>DCount("[lastdate]", "datesgenerated", "[lastdate] <= #" & Format(Me![CBODATE],"mm/dd/yyyy") & "#")</pre>

    Francois

  3. #3
    Lounger
    Join Date
    Feb 2001
    Posts
    29
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Re: Dcount (97 sr2)

    Thank you very much!!

Posting Permissions

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