C cnuhima Registered User. Local time Today, 14:21 Joined Jun 19, 2008 Messages 72 Mar 24, 2009 #1 Hi guys, I want to get the count of the records in the report..How can i get it.. Please help me out.. Thank you With regards, HimaBindu
Hi guys, I want to get the count of the records in the report..How can i get it.. Please help me out.. Thank you With regards, HimaBindu
Steve R. Retired Local time Today, 17:21 Joined Jul 5, 2006 Messages 5,439 Mar 24, 2009 #2 cnuhima said: Hi guys, I want to get the count of the records in the report..How can i get it.. Please help me out.. Thank you With regards, HimaBindu Click to expand... Code: lonRecordCount = DCount("[Representative]", "SiteInspRptQry", "[Representative] LIKE '*" & [strFieldRepresentative] & "*'") This counts the number of times a Representative appears in a Query(SiteInspRptQRY) that is used to generate a report. Before using, I would suggest looking at what Access HELP has on how to use COUNT.
cnuhima said: Hi guys, I want to get the count of the records in the report..How can i get it.. Please help me out.. Thank you With regards, HimaBindu Click to expand... Code: lonRecordCount = DCount("[Representative]", "SiteInspRptQry", "[Representative] LIKE '*" & [strFieldRepresentative] & "*'") This counts the number of times a Representative appears in a Query(SiteInspRptQRY) that is used to generate a report. Before using, I would suggest looking at what Access HELP has on how to use COUNT.
C cnuhima Registered User. Local time Today, 14:21 Joined Jun 19, 2008 Messages 72 Mar 25, 2009 #3 Sorry,I am not able to get it..Please help me out... Thanks HimaBindu
Steve R. Retired Local time Today, 17:21 Joined Jul 5, 2006 Messages 5,439 Mar 25, 2009 #4 cnuhima said: Sorry,I am not able to get it..Please help me out... Thanks HimaBindu Click to expand... You will need to read the COUNT topic in Access HELP. Also you should have at least one book on on VBA programming for Access.
cnuhima said: Sorry,I am not able to get it..Please help me out... Thanks HimaBindu Click to expand... You will need to read the COUNT topic in Access HELP. Also you should have at least one book on on VBA programming for Access.
Brianwarnock Retired Local time Today, 22:21 Joined Jun 2, 2003 Messages 12,667 Mar 25, 2009 #5 I agree with Steve that you should read the help on Count, but it won't solve all your problems. In your situation I'm guessing that you need to place an unbound textbox in the report footer with control source =Count(*) brian
I agree with Steve that you should read the help on Count, but it won't solve all your problems. In your situation I'm guessing that you need to place an unbound textbox in the report footer with control source =Count(*) brian
C cnuhima Registered User. Local time Today, 14:21 Joined Jun 19, 2008 Messages 72 Mar 25, 2009 #6 Thank you guys.. I was not not able to get it when i Keep the count(*) in report footer..But i got it when i replaced it to header.. I donot know the reasons behind it..but i got it.. Thank you, HimaBindu
Thank you guys.. I was not not able to get it when i Keep the count(*) in report footer..But i got it when i replaced it to header.. I donot know the reasons behind it..but i got it.. Thank you, HimaBindu