Auto renewal of SSRS report - reporting-services

I have created a report which represents daily sales. It has a Date parameter. Users of this report want it to renew, for instance, each hour, without clicking anywhere, and show results on the screen. They don't want to receive it by mail, they want to see it renewed version each hour on browser.
If it didn't have any parameter, I heard that it is possible to arrange schedule in browser itself, but it has a parameter (Date).
Is there a way to do this? Thanks in advance for any help.

Agreed with SFrejofsky to be careful about DB security. When I've needed to do this in the past though, there is a report auto refresh property that you can set that worked well.
Click anywhere outside of the report. Then in the report properties pane (if not already displaying... with report selected, press F4, or go to View-->Properties Window) set the auto refresh property (in number of seconds) to how often it should refresh (in your case... 1 hour... set to 3600), then with the report rendered, any new data since report first rendered or last refresh, should display upon the refresh.
I've done this when users run a report that they leave open for a bit and new data is being sent to the DB every couple minutes or less and they want it refreshed like every 30 seconds. I'd be curious though about the need to keep the report open for so long and a required auto-refresh of an hour.
Hope that helps.

I have to post a comment to your comment as an answer because I don't have enough reputation yet to add a commemt.
I went back to reports that I did as I described above. I see that the reason it worked in my cases is because there is a date range for the reports (from datetime and to datetime) which are defaulted to today at 12am to today at 11:59pm. So the reason this worked in my case is because when the business users are looking at this during the day, the new records will display, as they will still fall within that datetime range. All parameters for the report have default values. I tried changing one of the datetime values and running the report. It ran with the new datetime value, but each time it refreshes (every 30 seconds), the datetime doesn't get reevaluated. This is due to a long standing issue(?) ...opened in April 2011... with SSRS and not reevaluating default parameters that are changed by the user, that many people out there have mentioned they would like, and have the need, to have control over, and Microsoft just always responding with... it is not a bug, this is working as designed, as there isn't a way, currently, of knowing if the parameter was changed by the user.
So in my case, this was suffice, but I can see that based on the report requirements, it may not be a viable solution in every case.

Related

SSRS report with "Checkbox"-like feature that adds filters to query

I have a SQL database and using SSRS to produce reports. They are both 2012 version. The data is well water levels that are record every hour. Originally I have the report displaying ALL of the data for a user selected well (dropdown list). The user can also select the start and end date (text box) But the well levels don't change that much every hour unless there is a significant rain/flooding event. So I want the user to have the option to choose only the noontime values for each day. Is there a way to have a checkbox that would either 1) change actual query the report is using or 2) include filter that says only display 12:00:00? The parameter options seems to want to include a date and I only want to filter by time.
Thanks
I think the solution for you is to add a parameter to your report to be able to select what information to show with 2 possible values - All / Noon only. Then add a new field / calculated field to your dataset to indicate which ones are noon values. Then use the new parameter to filter the values showed in the report.
Hope it makes sense.

Adding Access totals cause report to not run

I am trying to add a few totals (sums and counts) using the wizard to an Access report. When I add them to the report and try to view the report, the report fails. Without the totals the report will display. The only thing I can figure that may be a factor is that the query being run to populate the report takes a bit to execute. The query runs a series of other queries which takes longer than normal to generate the report.
ETA: Thank you dmoody007 for your help in rooting out the problem and confirming my suspicions.
The question is a little vague. Any of these can either display errors or cause the report to not run.
Use Control Name in detail section of report for totals field (example: Name is Overtime so total of overtime should appear like =Sum([OverTime]))
Be careful not to name your controls the same. Detail control can be named Overtime. Your total of overtime should NOT be named overtime as well. Name it like Tot_OverTime otherwise you could end up with a circular reference.
If counting a text field, know that null fields are an issue. Suggest counting identity seeds or fields you know always have a value.
Make sure each control in detail you plan to sum, is formatted for numbers. If you look at the control property, format should be a number and you can assign decimal places. If not, you need to check your query or source table to ensure field is properly assigned a format.
One good tip. Add one field to total at a time. A little tedious but ensures one works before adding the next. Always recommend this to newbies until they get real comfortable making reports. Easier to debug.
Good Luck.

MS Access - Form tries to create new record on open and record jumps about a continuous form

So I have two issues with my database, which I think are linked together.
Firstly if tblDeliveries is empty and frmMainView is opened it comes up with "You must enter a value in the 'tblDeliveries.deliverySlot' field" but the form shouldn't be trying to create a record and I can't see any reason why it would. Opening frmDailyView (which is a subform of frmMainView) doesn't show this behaviour but it is the one with the continuous form on...
Secondly if tblDeliveries has one (or more) rows the first row of the table will jump about... For example in frmMainView if the date of the first record is set to 23/01/2015 and you navigate to the 24/01/2015 and click anywhere on the subform and then press F5 to refresh the record will have jumped to that date, the date even changes in tblDeliveries.
I have no idea why it's doing it, I even removed all of the VBA code for the form to stop it, but it happens anyway.
If anyone has come across anything like this before, please let me know how you fixed it, or any suggestions would be very welcome. Thanks!
EDIT: If you download the database, add your computer login name to tblUsers. Also the date is UK formatted, so might need tweaking to work with US dates.
The offending database (1.5MB)
Taking a look at your database, several issues are occurring.
You first issue can be resolved by going into the Design View of the table tblDeliveries, select the deliverySlot field and change Required (in bottom panel) from Yes to No.
Your second issue is multi-faceted with many issues but a critical problem is that the parent-child link field, deliveryDate, between the main form and subform is missing in the recordsource of the sub form and the field's table origin is not in the query's join statements. For me, I can't even update anything in subform (all boxes are grayed out).
Essentially, you are trying to normalize Delivery Dates and Delivery Times (one-to-many) but the left join query (qryDeliveryIncBlanks) setup is not aligned to this effect. You user login also does not integrate smoothly into frmMainView. My ultimate advice is revamp your database design relational model then use forms as the visual representation of those related tables.
I am not re-iterating the points of #Parfait.
Access Forms have a property DataEntry. If it is set to Yes (or True in VBA), then the form will open itself pointing to a new empty data record. Set this property to No (False in VBA).
If you want to give the user the possibility to manually enter a new record, set the property AllowAdditions to Yes and to No otherwise. Yes displays an empty record marked with a star * and the end of the data sheet or continuous form.
I've resolved the issue, thanks to some of the comments I realised I could just give the deliverySlot field a default value with a number outside of the range it would look for, I set it to 99, but it only looks for 1-20. The date still jumps around but since it's not in the range of the query it's hidden. It's resolved both issues.

How to create multiple Snap shots in ssrs report

I have read like, we can create multiple snapshot for a SSRS report.But we have to create a default value as a filter if exist.So my question is,at first we add a default value in parameter and deploy the report and set the snap shot option.Then what is meant by multiple snap shots?At a time we have only one default value right?So multiple snapshot means same data will be there for all snapshot right? Also,How can we create mutiple snapshot?
Snapshots are meant for using the same default parameters and having them run on a schedule. That would be useful for a report where the data changes every day and you want to keep a snapshot from every day. Not useful if your data never changes and you want to use different parameter values.
The other option is to use a "Cache refresh plan". You can set up different schedules and different parameter values for these and set it to cache a temporary copy of the report that expires after a day or whatever you like (in minutes).
I use the second option for a report which takes about 30 seconds to run. This is too long for the user (Senior Manager) so I have it set to run at 7am every day and then just show that same cached report to the manager all day no matter how many times the report is run.

Microsoft Access - Variable Overrides in Reports

I'm currently in the process of creating an extensive Access report (~50 calculated fields) for a client and while I've gotten 99% of the report down, I'm having trouble handling the Sum and Count logic on the report.
In a nutshell, the report is intended to list the attendees at an event, tally up the number of attendees at each track/course, and also list any outstanding dues which will be paid at the door. In addition, and this is where I'm having trouble, the report also shows the revenue from each track/course along with a breakdown of the revenue from commuters vs. people staying overnight.
At the moment, all of the formulas follow fairly similar structures so despite having 50 fields, 99% of those are simply adjusting the fields to fit the relevant variables.
For the report now with revenue, my issue is that although I have the fee data specified in the data tables, Microsoft Access keeps zeroing out the calculations rather than displaying the total on the fly.
Here's two of the formals I'm using:
=((Count([W1]))*[Fee Charged W1])
=Sum([Room & Meals])
Earlier today I think I pinpointed the problem to the fact that Microsoft Access is showing the report essentially per individual rather than displaying one report for the entire dataset. I've confirmed this because I manually checked the data and noticed some fields had null values which explained the null tallies.
My question now is whether there is a way to assign a default value for variables in reports so that the report cancels out any invalid data in the database table? I imagine using VBA would help, but I have little experience in that realm.
Thanks very much in advance for any assistance
Just found the solution which was right under my nose the entire time. I just had to configure the fields to use a Running Sum (also called a Cumulative Total).
The answer came right from a page in the Microsoft Office Website: http://office.microsoft.com/en-us/access-help/summing-in-reports-HA001122444.aspx