dbTalk Databases Forums  

dCount query

comp.databases.ms-access comp.databases.ms-access


Discuss dCount query in the comp.databases.ms-access forum.



Reply
 
Thread Tools Display Modes
  #1  
Old   
Blue Lagoon Products - Customer Services
 
Posts: n/a

Default dCount query - 09-10-2006 , 01:32 PM






Hi,

Here is my expression

=DCount("[Buyer ID]","tblDownload")>2

I would like to know how many records (including this one?) contain the same
'Buyer ID' as that in txtBuyerID on my report, is this correct ?

--

Thank You,

Nick Jones
Customer Services
Blue Lagoon Products

Please send all e-mails to info (AT) bluelagoonproducts (DOT) com quoting your eBay
item number, eBay ID, Postcode and order number.



Reply With Quote
  #2  
Old   
Bob Quintal
 
Posts: n/a

Default Re: dCount query - 09-10-2006 , 01:41 PM






"Blue Lagoon Products - Customer Services"
<info (AT) bluelagoonproducts (DOT) com> wrote in
news:ESYMg.20197$89.14547 (AT) fe1 (DOT) news.blueyonder.co.uk:

Quote:
Hi,

Here is my expression

=DCount("[Buyer ID]","tblDownload")>2

I would like to know how many records (including this one?)
contain the same 'Buyer ID' as that in txtBuyerID on my
report, is this correct ?

No, this will tell you that the count of all buyer IDs in the
table, including duplicates are greater than 2.

What you need is
=DCount("[Buyer ID]","tblDownload",
"[Buyer id] = " & me.txtBuyerID & ")"
if [Buyer ID] is a number.
Or
=DCount("[Buyer ID]","tblDownload",
"[Buyer id] = """ & me.txtBuyerID & """)"
if it's in a text field in the table.
--
Bob Quintal

PA is y I've altered my email address.

--
Posted via a free Usenet account from http://www.teranews.com
Warning: Do not use Ultimate-Anonymity
They are worthless spammers that are running a scam.



Reply With Quote
Reply




Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off



Powered by vBulletin Version 3.5.3
Copyright ©2000 - 2013, Jelsoft Enterprises Ltd.