A Microsoft Office (Excel, Word) forum. OfficeFrustration

If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below.

Go Back   Home » OfficeFrustration forum » Microsoft Access » Setting Up & Running Reports
Site Map Home Register Authors List Search Today's Posts Mark Forums Read  

dcount syntax



 
 
Thread Tools Display Modes
  #1  
Old July 25th, 2007, 02:29 AM posted to microsoft.public.access.reports
Mitchell_Collen via AccessMonster.com
external usenet poster
 
Posts: 58
Default dcount syntax

Help please. I am trying to count ratings in a report such as:

handout ratings
count total 1s
count total 2s
count total 3s


here is may query:

SELECT workshopID,workshopname, name, dateFrom, dateTo, Contentrating,
Handoutrating, evaluation.[Comments for Content], evaluation.[Comments for
Handout], evaluation.[How may we improve], evaluation.[Describe how it helps]
FROM Lots of tables..
WHERE (((workshop.workshopname)=[workshopname?]));

Please tell me how to do this, i tried a dcount but i am unsure of the syntax.
also is there a select clause also that i need to add to properties in report?



-Misty

--
Message posted via AccessMonster.com
http://www.accessmonster.com/Uwe/For...ports/200707/1

  #2  
Old July 25th, 2007, 05:00 AM posted to microsoft.public.access.reports
Duane Hookom
external usenet poster
 
Posts: 7,177
Default dcount syntax

You might want to remove the parameter query and reference a control on a
form. Then create a totals query like:
SELECT Handoutrating, Count(*) as NumOf
FROM [Lots of tables]
WHERE Workshopname= Forms!frmYourForm!cboWSName
GROUP BY Handoutrating;

Then create a subreport based on this query and add it to the existing
Report Footer section.
--
Duane Hookom
Microsoft Access MVP


"Mitchell_Collen via AccessMonster.com" wrote:

Help please. I am trying to count ratings in a report such as:

handout ratings
count total 1s
count total 2s
count total 3s


here is may query:

SELECT workshopID,workshopname, name, dateFrom, dateTo, Contentrating,
Handoutrating, evaluation.[Comments for Content], evaluation.[Comments for
Handout], evaluation.[How may we improve], evaluation.[Describe how it helps]
FROM Lots of tables..
WHERE (((workshop.workshopname)=[workshopname?]));

Please tell me how to do this, i tried a dcount but i am unsure of the syntax.
also is there a select clause also that i need to add to properties in report?



-Misty

--
Message posted via AccessMonster.com
http://www.accessmonster.com/Uwe/For...ports/200707/1


 




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 Off
HTML code is Off
Forum Jump


All times are GMT +1. The time now is 03:48 PM.


Powered by vBulletin® Version 3.6.4
Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Copyright ©2004-2024 OfficeFrustration.
The comments are property of their posters.