Reports :: Exporting Filtered Report After Users Verifies Content

Sep 18, 2013

I have a report that is opened via a Form that lets the user choose a date to filter the report. The report opens in Print Preview mode.

What I'm attempting is to give the user an easy way to export the report once they've verified the report is accurate.

One way I've tried to do this was to use the OnClose event to execute a vbYesNo MsgBox giving them the option to export. The problem here is that I can't do the export while the report is closing.

Code:
Run-time Error '2585': This action can't be carried out while processing a form or report event.

I tried to move my MsgBox to the OnUnload so that could cancel the Unload, but was met with the same results.

Code:
Private Sub Report_Unload(Cancel As Integer)
Dim Response
Response = msgbox("Do you want to save a copy of this log?", vbYesNo, "Export to PDF")
If Response = vbYes Then
Cancel = True
DoCmd.OutputTo acOutputReport, "rptWatchLog", acFormatPDF
End If
End Sub

Some research indicates perhaps the DoCmd.OutputTo is happening to quickly. Would including some type of pause in the code execution between the Cancel = True and the DoCmd solve my problem? Though frankly, even if it did it doesn't feel very elegant. I also recognize that I'd need to reinitiate the Unload>Deactivate>Close process after the export completed.

I initially began by having an Export Command Button on the form they use the choose a date, but was unable to have the exported report honor the user supplied filter from that form.

Here is the code from that form that is applying the filter:

'Open Watch Log Report with chosen date as filter
Private Sub cmdOpen_Click()
'use date even though it's not saved anywhere
If Me.Dirty Then
Me.Dirty = False

[Code] .....

View Replies


ADVERTISEMENT

Reports :: Unfiltered Report Footer Totals On Filtered Report?

Apr 10, 2014

I've done this once entirely by accident and can't seem to duplicate it...

I have a report. It has the following:

Report Header: Logo and title
Department Header
Supervisor Header
Group Header
Detail
Department Footer: Totals
Report Footer: Overall Totals for all departments

Here's my question.
I have combo boxes on my main form that filter this report. The combo boxes are referred to by the query that runs the report. How do I get proper unfiltered overall totals in my report footer?

View 4 Replies View Related

Reports :: Getting A Report Based On Filtered Subform?

Dec 25, 2014

i have some combobox which shows the column shown into the subform. i can filter the subform using the comboxes. now i need to build an instant report based on the current filtering. i can filter more or less. but i need the current position of the subform into a report.

View 2 Replies View Related

Reports :: Printing Filtered Results That Have Set In Report

Aug 5, 2015

I have a database with some reports that show all records in a table. Some users want to only see certain rows, so they use filter option (clicking in the field, and using the funnel symbol feature at the top.

I have a print button, but I had only set it to print the report name. So when a user filters a report and clicks print, it still prints every record, instead of the filtered results that they have set.

How can I alter my VBA code for printing so that the button prints whatever results are shown? I don't quite understand how Me.Filter works, so every change I try still prints everything.

Right now its just back to

Private Sub btnPrint_Click()
DoCmd.OpenReport "ALL REQUESTS", acNormal
End Sub

View 6 Replies View Related

Reports :: Printing Filtered Pivot Chart On A Report

May 23, 2013

I have created a database that tracks production by individuals. I have also created a report which includes a pivot chart to give the user a chart view of production.

In the pivot filter of the chart I have associate names, where the user can click all, or individual associates, to see individual production.

The trouble I am having is when the user goes to print the chart, it will only print the chart with the "All" filter view. Even if the pivot chart is filtered to one associate, it will print like "All" was checked.

Is there a way to allow the report/pivot chart to only print the production for the individual who is checked within the pivot filter?

View 4 Replies View Related

Reports :: Printing Report Based On Filtered Results Of Form

Jun 26, 2013

I am trying to print a report based on the filtered results of a form where the data record source is generated from a query. What I have is five unbound comboboxes on a form that filter the results of the query on a subform which works fine in whichever combination I set, I then want the report to print out the results of the filter and the filter combination that I used - basically exactly as it appears on the form (I have used the same query / subform in the report with text boxes to show the filters used on the form). My VBA skills are quite limited (but improving!) and I have trawled the web trying different code examples but can't seem to get it nailed. Current filter code follows;

Code:
Option Compare Database
Option Explicit
Private Sub PrntConfigReport_Click()

[Code].....

View 3 Replies View Related

Reports :: Exporting Report As Individual PDFs?

Aug 31, 2014

I have a report that has a group sort and page break after each area. What I'd like to do is export each area as it's own individual PDF report (preferably as an automated process).

View 3 Replies View Related

Reports :: Exporting Report To PDF Blank Fields On Some Computers Only

Apr 24, 2013

I have a report (Access 2007) with subreports that is being exported to pdf. It all works fine on PC except for on a virtualbox and a laptop. When the user exports the report to pdf, it leaves some subreports blank! If the report is opened in the DB it pulls data as it should and all looks fine.

In the report, the missing data is from 4 subreports in the same top section of the report where a 5th subreport also resides. Subreport 5 is displayed OK. There is no dynamic formatting nor filtering in the reports.

These two machines had to have the 2007 Microsoft Office Add-in: Microsoft Save as PDF installed for the PDF export to work at all. Both machines are up-to-date on the latest windows updates. The virtual box runs XP while the laptop runs Windows 7.

This is the strangest error I have ever encountered as it only partially fails and it cannot be replicated on a regular PC.

View 4 Replies View Related

Reports :: Exporting Data From Clicked Field On One Report To Another

Feb 23, 2015

I have become stuck with an issue which I am sure is entirely my fault. I am trying to create/modify a macro for a field ([cx_ref]) on a report (Upholstery_orders), so that when a particular record is clicked, it uses the data in that specific record and field to open another report (works_orders), based on said data.

So far the only headway I could make was to create a macro that opened an intermediate form with a combo box displaying every record in [cx_ref]. I'm not a huge fan of this method as any user would have to either memorise then type, or scroll down thousands of records in order to locate the correct one, select it and then click a button to open the "works_order" report.

A macro (or code) that could take one from the original report, using the data in the 'clicked' box/field on the form, and open the second report without having the input the data again. Short of being able to do this, any way to simply export the selected field so that it appears on the intermediate form (without the need to select or type it again), be that in the combo box or in a box of its own.

View 1 Replies View Related

Setting Up Good Report Menus For End Users - A Lot Of Reports!

May 25, 2005

I am working on stream lining reports for my application, so that I don't have a huge maze of menus.

I am open to any ideas of how to best set this up. Right now I have a report menu with about 8 command buttons. Some take them to a criteria form for that report, others straight to the report, and others to another menu with a whole other set of buttons for more reports.

I have looked at organizing the "categories" of reports that I have.

I see that I have Candidate reports and Hire reports. This is because this application is for people who apply for a job. Once the information is entered on the entry side, there are a number of things to report on.

One idea is to make a statistics report menu for all of the summary reports. These are counts of candidates under certain groups, like what office they applied to, what departmen, or what date they applied. Then these counts exist for hires as well, and what they were hired to, and what date they started.

I also have detail reports showing the people information as candidates or hires, grouped by these such factors.

If anyone can help me to organize the best method for making these reports available to the user, I would really appreciate it.

One thought would be a form with 2 combo boxes and a preview button.

I am thinking that this could work for the statistic report menu. My database is normalized, so I can't use their names in the combos. I would want to have 1 combo for choosing candidate or hire, as that report that they want. Then the next combo would be the factor to report them on. Office, department, application source, etc

I have summary report for candidates and for hires. parallel reports, but one for (ie) all candidates by the office that they applied to. Then I would have one for all hired candidates (were hired) by the office that they were hired to. Same with department, and many others.

If anyone can help me to either how best to do this process, whether my thought is a good way to go, or if there is a better set up that I should try. I am open to anything here!

Thanks. :D

View 1 Replies View Related

Reports :: Running A Report Outside Of Access For General Users

Mar 28, 2014

My database is slowly coming together. For the final part of this phase i would like to create a shortcut on each users desktop which runs a summary report of information within my database.

I have criteria set so upon opening the report the user is asked for which address they wish to see information from which works great. But I do not want users to have access to the database, I just want them to be able to click a shortcut, be asked what address they are looking for and for the report to ping up in a 'Print Preview' type layout so information can be seen and displayed but not altered. All users have the access program.

View 2 Replies View Related

Reports :: MS Access 2010 Report - Exporting To Excel Produces Blank Xls File?

Jun 27, 2014

My report (rptBilling_STS_Summary) has three subreports (rptBilling_STS_Summary_Install, rptBilling_STS_Summary_Rental, rptBilling_STS_Summary_LDRate) that return values that are grouped by customer and calculates a total for each customer.

I need the report to export to excel for our client but every attempt has produced a blank XLS file. I have tried every export method I can think of. This is what I have tried:

Export button from external data ribbon
Export from print preview
Export via macro
Export via VBA (DoCmd.OutputTo acOutputReport, "rptBilling_STS_Summary", acFormatXLS, , False, , , acExportQualityPrint)

All this has produced the same blank excel file... Very frustrating...

I have searched and found a lot of information on 2007 and it requiring sp2 but all I can find on 2010 is instructional information.

Update: I copied the database to my local PC and when I export the XLS file it opens in protected view.

View 5 Replies View Related

Form To Select Report Content

Nov 24, 2005

Hello,

I have a query set up as the record set for a form containing combo boxes.

The form has four combo boxes with various drop downs. I have linked these combo boxes to the query using this syntax in the query:

[Forms]![frmToolStats]![cboModel_Number]

I have a preview button report on the form to load my report template to be populated with the combo selected info.

If I fill all four combo boxes with specfic info then my report displays all data records related as you would expect. For example I can select A 'Tool Type', 'Manufacturer', 'Model Number' and 'Tool Condition' and my reports will show me three test records relating to these specific parameters.

How do I set the code to allow me to complete only some of the boxes and return the records i.e. only 'Tool Type' and 'Model Number'.


I am trying to get my report to lift the data for test records for each specific tool by model number and tool condition and then do some calculations. This forms the full report.

I have tried this code:

If Not IsNull(Me![cboToolGroup]) Then
where = where & " AND [cboToolGroup] Like '*" & Me![cboToolGroup] & "*'"
End If


Can anyone help?

View 14 Replies View Related

Adding Report Content Into Email Body

Jul 30, 2014

I am trying to work my way into putting the content of my report into the body of an e-mail. I have used the following code to do so but I keep on getting the error: "An Expression You Entered Is the Wrong Data Type for one of the Arguments"

Code:
Private Sub Command278_Click()
On Error GoTo ER
Dim db As Database
Dim rstOpenPurchaseOrders As Recordset
Dim strSQL As String

[Code] .....

View 14 Replies View Related

Create Field Content Based On The Content Of Others?

Apr 16, 2007

Can I create contents of one field based on the contents of others?

I have a database of pc systems which we've tested and was wanting to generate a single text line to identify the individual pc

The single filed would contain data from the following fields
Job Number
CPU Type
CPU Speed
RAM
HDD size

eg
So the new field would contain "Job345-P3-1000-256-20"

Can this be done?

View 3 Replies View Related

Modules & VBA :: Control Height Of Multiple SubReports With Varying Content On Report

Jul 8, 2013

I am working on a report that will have 16 sub-reports, one right below the other. Because of the complex nature of the calculations in the groupings it seemed easier to "build" the report using vba rather than using the report's built-in grouping ability. The issue I am running into is that there seems to be no simple way to control the height of the sub-reports. I had hoped that setting "can grow" to yes would change the height of the sub reports and move all subsequent sub reports down (Allas)

As an alternative I thought too that I might be able to set the height of the sub-report control, which would make for a tricky but not impossible bit of programming, but (Again allas) I can't seem to find a reasonable way to determine the required height of the sub-report's control.

View 3 Replies View Related

Reports :: Exporting Individual Reports Based On Group To PDF?

Nov 14, 2013

I'm working on a project where I must save roughly 1000 individual access reports based on the group to a specific folder in pdf format.

Problem:The code I found on this site works, but not exactly the way I need it to. Using the current code (pasted below) all of the pages of the report are being saved to pdf for each group, instead of just the single page. For example, all 1000 pages of the report are being saved to each pdf file, when I only want the 1 page for each of the groups.

I believe that the problem lies in the filter for the Open Event code, but I don't know how to modifiy it to make it work the way I need.

CODE:

Option Compare Database
Public strRptFilter As String
Private Sub Report_Click()
Dim rst As DAO.Recordset
Set rst = CurrentDb.OpenRecordset("SELECT DISTINCT [SHIP_TO_CODE] FROM [qryWty&PendingData] ORDER BY

[code]....

View 13 Replies View Related

Modules & VBA :: Matching Content To Other Content?

Feb 4, 2015

how many elements matching to my primary elements from any records of my query and count match, if some element doesn't match then I need to add it to my primary elements, then at the end (rst.eof) count how many primary elements I have.

E.G

id colours
1 blue;red
2 purple;blue;green
3 red;violet;purple;blue

dim matching_elements as long
dim primary_elements as string
dim TheNumberOfPrimaryElements as long

First of all, if I open recordset primary_elements is empty so I need to assign a value form first record.

primary_elements = rst!colours (so primary_elements = blue;red)

Now I can start comparing my primary_elements with second record:

matching_elements= 1
primary_elements = blue;red;purple;green

comparing my primary_elements with third record:

matching_elements= 3
primary_elements = blue;red;purple;green;violet

It's my last record so I need to count primary_elements

TheNumberOfPrimaryElements = 5

I need "matching_elements" to count other function in my application.

View 7 Replies View Related

Filtered Report

Jan 25, 2006

Hey all, I have been trying to filter my report However It doesnt seem to be working the way I would like it to. I have the ability to filter on my form, so I can search Wood* and then there will be 27 records displayed so I can view each one speratly. however now I would like to have it on a report. I would like to then click the report button, and view those 27 records on my report as the layout that I have provied I can see multiple on a sheet. Any ideas?

View 4 Replies View Related

Reports Based Off Of Form Filtered Results

Nov 3, 2004

I'm trying to create a report that prints out results of a filter by form search.

I have a form, frm_account, which displays data from tbl_account.

I have a select query, qry_filter_results, which I want to take the filtered results from frm_account.

My problem is that I don't know how to take the results from the form. Is it a parameter in the query? Or is it the criteria fields? I've tried a couple things in the Expression builder for the criteria, but each has failed. I either get a report with nothing in it or a report with every record in tbl_account.

Any ideas? Thanks

View 5 Replies View Related

Allow User To Create Custom / Filtered Reports

May 1, 2015

I have a normalized database with (let's say) the following tables:

tblProjects
tblStaff
tblProjectPhase
tblOffice

I need a way to allow the end user to be able to create custom reports that show only projects in certain phases (let's say planning and construction) AND that are from certain Offices (let's say Office 1 and 3 but not 2) AND that were started between a certain date range.

What I'm envisioning is a checkbox-style form that has a 'create report' button at the bottom.

View 5 Replies View Related

Only Filtered Records On Report

Sep 15, 2005

i've created a form base on a query, and other users will work on it (mainly filter). then i created a report base on the same query...
what i want is a "print" button on the form which will print the report, not all records, but only the filtered records after user applied their filters...
since users will apply different filters each time, it's quite impossible to make all different filters as query...
any idea?

View 12 Replies View Related

Forms :: Open A Report With The Results From A Filtered Form?

Nov 25, 2014

I want to open a report with the results from a filtered form.

I want to use a similar format to the attached Allene Browne search2000 as the base to filter the records initially, but not sure how to get the filtered results into a report and the most efficient way.

View 8 Replies View Related

Report Out With One Click - How To Get Filtered Data In Graph Form

Sep 29, 2014

My company wants me to run a high level report which ask for three filters. However as its high level they want it should run with a click instead of choosing filters from three drop down ...

As this report comes out as a graph I can't use report wizard to run tabular report. Any smart way that they click a button and get filtered data in graph form.

View 6 Replies View Related

Generating Filtered Report By Selecting A Month From Combo Box

May 8, 2013

Basically what I would like to do is create a Combo Box with each month of the year available to select. When I click on a specific month, I want it to pop open a Report based on my table that is filtered by the month I selected. I have a Date column already created in my base table to be my filtering device.

I've already learned how to use query's and reports a bit. I have a Command Button on my form that launches a report based on a query that only shows data for the current year. Likewise, I created one that only shows data for things with a specific item code using a [Which Item Code?] criteria in my query. So in theory, I could do this by creating 12 different buttons, 12 different query's, and 12 different reports. That seems like overkill though and it would seem there has to be an easier way to do that simply by using a combo box to select the month you want to filter.

View 14 Replies View Related

Queries :: Passing Filtered Subform To Query To Generate Multi-page Reports?

May 24, 2013

I have a filtered form with a sub form displaying only non-printed invoices.

The sub-form has a check-box (which is how the form is filtered) to only show unchecked (not yet printed) invoices.

All i want to do is print only the invoices visible in the sub-form.

I've setup the report to link to a query and the report is all setup, i just can't get the query to function how i want it to!

I've got this SQL code for the Query.

Code:
SELECT tblOrderForm.OrderNo, *
FROM tblOrderForm INNER JOIN tblOrderDetail ON tblOrderForm.OrderNo = tblOrderDetail.OrderNo
WHERE (((tblOrderForm.OrderNo)=[Forms]![Export Orders]![ExportSub].[form].[OrderNo]));

However this only shows the field with focus. I would like it to display ALL data in the subform.

View 1 Replies View Related







Copyrights 2005-15 www.BigResource.com, All rights reserved