Results 1 to 2 of 2

Thread: report dcount

  1. #1
    4 Star Lounger
    Join Date
    May 2003
    Location
    Manchester, Gtr Manchester, England
    Posts
    552
    Thanks
    0
    Thanked 0 Times in 0 Posts
    Hi I have a text field in my report and wish to count instances of yes from a query that is not the source of the report. This is the code I have added:=DCount("[TR_Props_ID]","qPropsCount","[TRQuote_Issue] = 1"). There are 10 records in this query and 9 are yes but my code doesn't work?


    Thanks, Darren.

  2. #2
    Plutonium Lounger
    Join Date
    Mar 2002
    Posts
    84,353
    Thanks
    0
    Thanked 29 Times in 29 Posts
    Is TRQuote_Issue a Yes/No field? If so, use either

    =DCount("[TR_Props_ID]","qPropsCount","[TRQuote_Issue] = True")

    or

    =DCount("[TR_Props_ID]","qPropsCount","[TRQuote_Issue] = -1")

    In VBA and in Access, True = -1 and False = 0.

Posting Permissions

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