470,841 Members | 905 Online
Bytes | Developer Community
New Post

Home Posts Topics Members FAQ

Post your question to a community of 470,841 developers. It's quick & easy.

DCount

Hi,

I have this below but it is always returning the value as 0, even when there
is more than 1 record.
=DCount("[Buyer ID]", "tblDownload", "[Buyer ID] = "" & me.txtBuyerIDTop &
"" ")

Any idea's?

--

Thank You,

Nick Jones
Customer Services
Blue Lagoon Products
Sep 12 '06 #1
1 2472

Blue Lagoon Products - Customer Services wrote:
Hi,

I have this below but it is always returning the value as 0, even when there
is more than 1 record.
=DCount("[Buyer ID]", "tblDownload", "[Buyer ID] = "" & me.txtBuyerIDTop &
"" ")

Any idea's?
If BuyerID is a number and not a character string then you've got too
many double quotes. This should work:

DCount("[Buyer ID]", "tblDownload", "[Buyer ID] = " & me.txtBuyerIDTop)
Bruce

Sep 12 '06 #2

This discussion thread is closed

Replies have been disabled for this discussion.

Similar topics

1 post views Thread by Megan | last post: by
4 posts views Thread by Will | last post: by
2 posts views Thread by Paul T. RONG | last post: by
3 posts views Thread by BerkshireGuy | last post: by
8 posts views Thread by Susan Bricker | last post: by
By using this site, you agree to our Privacy Policy and Terms of Use.