Posts Topics Forums Images
Search videos from message boards Videos Search messages from microblogs Microblogs Search messages from imdb.com Imdb Search messages from yuku.com Yuku Search messages from lefora.com (free forums) Lefora
My account: Login | Sign Up
Loading... 

Thread: Still struggling with DCount

Started 1 month, 2 weeks ago by scottyboyb
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...
Site: Microsoft Office (Excel, Word) forum - OfficeFrustration  Microsoft Office (Excel, Word) forum - OfficeFrustration - site profile
Forum: Using Forms  Using Forms - forum profile
Total authors: 6 authors
Total thread posts: 11 posts
Thread activity: no new posts during last week
Domain info for: officefrustration.com

Other posts in this thread:

RonaldoOneNil replied 1 month, 2 weeks ago
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....

John W. Vinson replied 1 month, 2 weeks ago
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...

scottyboyb replied 1 month, 2 weeks ago
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...

Gina Whipp replied 1 month, 2 weeks ago
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 ...

Beetle replied 1 month, 2 weeks ago
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 ...

scottyboyb replied 1 month, 2 weeks ago
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 ...

Beetle replied 1 month, 2 weeks ago
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]","[...

scottyboyb replied 1 month, 2 weeks ago
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 ...

John W. Vinson replied 1 month, 2 weeks ago
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 ...

 

Top contributing authors

Name
Posts
scottyboyb
4
user's latest post:
Still struggling with DCount
Published (2009-11-07 22:29:00)
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...
Beetle
2
user's latest post:
Still struggling with DCount
Published (2009-11-07 16:46:00)
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,...
John W. Vinson
2
user's latest post:
Still struggling with DCount
Published (2009-11-07 23:01:00)
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...
RonaldoOneNil
1
user's latest post:
Still struggling with DCount
Published (2009-11-06 17:30:00)
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...
Gina Whipp
1
user's latest post:
Still struggling with DCount
Published (2009-11-07 05:11:00)
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....
BruceM via AccessMonster.com
1
user's latest post:
Still struggling with DCount -...
Published (2009-11-09 13:32:00)
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":

Related threads on other sites:

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