Hello, I have searched through the messages here and have tried various things. What I need is the percentage of licenses expiring in 30 days from the total number of database records. I am able to get the total number of expiring (and expired) licenses by doing a query and setting the criteria <date()+30. Then in the report footer I have a textbox named "TotalQueried" that reads =Count([Lastname]) as the record source. This is attached to data showed in the detail section that I grouped together by lastname (show header/footer). This gives the correct number of total epiring (or expired) licenses.
My problem is trying to get the next calculation to work. I placed another grouping on StuID (show header/footer) and in the footer I put a textbox named "Totalrecords" and put =Count([CPRQuery]![StuID] as the record source. I then made another textbox in the report footer that has a textbox with =[TotalQueried]/[Totalrecords] as the control source. This gives me a div by zero error. I have tried various different calculations and what not both trying to make a new query "CPRQuery" and using other types of things like Count in the Query instead of GroupBy without success. How do I get this percent thing to work? Thanks.
My problem is trying to get the next calculation to work. I placed another grouping on StuID (show header/footer) and in the footer I put a textbox named "Totalrecords" and put =Count([CPRQuery]![StuID] as the record source. I then made another textbox in the report footer that has a textbox with =[TotalQueried]/[Totalrecords] as the control source. This gives me a div by zero error. I have tried various different calculations and what not both trying to make a new query "CPRQuery" and using other types of things like Count in the Query instead of GroupBy without success. How do I get this percent thing to work? Thanks.