I am still strugling with understanding DCount. I don't know why I can't get
it.
Does DCount work in forms and subforms? If so, what is wrong with this:
DCount("[AmoutPledged]","Forms![Campaign Pledge Listing
Subform]","[AmountPledged] '0' ")
AmountPledged = currency field in table
Campaign Pledge Listing Subform = subform that holds AmountPledged
As I understand it, DCount says...
DCount does not work with forms, only Tables and Queries. A form's
recordsource is also a table or query so you do not need it to apply to
forms, you can use the underlying table or query.
DCount("[A Field in Table or Query]","[Query or Table
Name]","]","[AmountPledged] 0")
"scottyboyb" wrote:
I am still strugling with understanding DCount. I don't know why I can't get
it....
On Fri, 6 Nov 2009 07:20:02 -0800, scottyboyb
wrote:
I am still strugling with understanding DCount. I don't know why I can't get
it.
Does DCount work in forms and subforms? If so, what is wrong with this:
DCount("[AmoutPledged]","Forms![Campaign Pledge Listing
Subform]","[AmountPledged] '0' ")
AmountPledged = currency field in table
Campaign Pledge Listing Subform = subform...
Thanks for the reply. I appreciate the explanation. I have put your solution
in and I am geting a name error. I have checked all thenales and they appear
correct. Is there someplace I should be looking?
Best,
Scott
"RonaldoOneNil" wrote:
DCount does not work with forms, only Tables and Queries. A form's
recordsource is also a table or query so you do not need it to apply to...
Scott,
Copy/paste your new DCount here along where you are using it.
--
Gina Whipp
"I feel I have been denied critical, need to know, information!" - Tremors
II
http://www.regina-whipp.com/index_files/TipList.ht m
"scottyboyb" wrote in message
...
Thanks for the reply. I appreciate the explanation. I have put your
solution
in and I am geting a name error. I have ...
Can you post your DCount statement as it currently is?
There is an extra bracket in the example from the other
responder which you may have unknowingly placed in
yours as well.
--
_________
Sean Bailey
"scottyboyb" wrote:
Thanks for the reply. I appreciate the explanation. I have put your solution
in and I am geting a name error. I have checked all thenales and they ...
Greetings,
DCount("[AmountPledged]","[ContributorsPledgesQue ry]","[Paid]=True")
I did see the extra brackets. Here is the statement as it is now.
AmountPledged is a number field. Then the query named above for Paid, a
yes/no field in the same query and field that I want to be counted for true.
Thanks,
Scott
"Beetle" wrote:
Can you post your DCount statement as it ...
I don't immediately see anything wrong with the way that
is written. Are you putting this directly in the Control Source
of a text box on your form? If so you need to precede it
with the = sign.
=DCount("[AmountPledged]","[ContributorsPledgesQu ery]","[Paid]=True")
--
_________
Sean Bailey
"scottyboyb" wrote:
Greetings,
DCount("[AmountPledged]","[...
I put the = sign in and now I ger a #error. DCount seems to have me on the
ropes. I have rechecked the spelling of each field and query and everything
seems fine.
I mayjsut give up and not provide this info on the form. Iti is the reports,
but I was hoping to have it on the forms where pople are working.
Best,
Scott
"Beetle" wrote:
I don't immediately see anything wrong ...
On Sat, 7 Nov 2009 13:29:01 -0800, scottyboyb
wrote:
I put the = sign in and now I ger a #error. DCount seems to have me on the
ropes. I have rechecked the spelling of each field and query and everything
seems fine.
I mayjsut give up and not provide this info on the form. Iti is the reports,
but I was hoping to have it on the forms where pople are working.
Post the SQL of ...
BruceM via AccessMonster.com replied 1 month, 1 week ago
What happens if you leave out the Where condition:
=DCount("[AmountPledged]","[ContributorsPledgesQu ery]")
scottyboyb wrote:
I put the = sign in and now I ger a #error. DCount seems to have me on the
ropes. I have rechecked the spelling of each field and query and everything
seems fine.
I mayjsut give up and not provide this info on the form. Iti is the reports,
but I was ...
I put the = sign in and now I ger a #error. DCount seems to have me on the ropes. I have rechecked the spelling of each field and query and everything seems fine. I mayjsut give up and not provide this info on the form. Iti is the reports, but I was hoping to have it on the forms where pople are working. Best, Scott "Beetle" wrote: I don't immediately see anything wrong with the way that is written. Are you putting this...
I don't immediately see anything wrong with the way that is written. Are you putting this directly in the Control Source of a text box on your form? If so you need to precede it with the = sign. =DCount("[AmountPledged]","[ContributorsPledgesQuery]","[Paid]=True") -- _________ Sean Bailey "scottyboyb" wrote: Greetings,...
On Sat, 7 Nov 2009 13:29:01 -0800, scottyboyb wrote: I put the = sign in and now I ger a #error. DCount seems to have me on the ropes. I have rechecked the spelling of each field and query and everything seems fine. I mayjsut give up and not provide this info on the form. Iti is the reports, but I was hoping to have it on the forms where pople are working. Post the SQL of the query. Is AmountPledged in fact in the query? If you open the query...
DCount does not work with forms, only Tables and Queries. A form's recordsource is also a table or query so you do not need it to apply to forms, you can use the underlying table or query. DCount("[A Field in Table or Query]","[Query or Table Name]","]","[AmountPledged] 0") "scottyboyb" wrote: I am still strugling with understanding DCount. I...
Scott, Copy/paste your new DCount here along where you are using it. -- Gina Whipp "I feel I have been denied critical, need to know, information!" - Tremors II http://www.regina-whipp.com/index_files/TipList.htm "scottyboyb" wrote in message ... Thanks for the reply. I appreciate the explanation. I have put your solution in and I am geting a name error. I have checked all thenales and they appear correct....
What happens if you leave out the Where condition: =DCount("[AmountPledged]","[ContributorsPledgesQuery]") scottyboyb wrote: I put the = sign in and now I ger a #error. DCount seems to have me on the ropes. I have rechecked the spelling of each field and query and everything seems fine. I mayjsut give up and not provide this info on the form. Iti is the reports, but I was hoping to have it on the forms...
Related threads on "Microsoft Office (Excel, Word) forum - OfficeFrustration":
Still struggling with Alaskan internet which is... Still struggling with Alaskan internet which is preventing me from uploading latest blog..will be out there soon though! 9:24 PM Jun 25th from twibble
Thread profile page for "Still struggling with DCount" on http://www.officefrustration.com.
This report page is a snippet summary view from a single thread "Still struggling with DCount", located on the Message Board at http://www.officefrustration.com.
This thread profile page shows the thread statistics for: Total Authors, Total Thread Posts, and Thread Activity