Reports :: A2007 On Win7 - Unbound Report Does Not Open - OK On XP / 2007

Aug 8, 2013

I have an unbound report - which is actually a form for the user to print out if they need one. There is no data on the form.

Here is the code that is run when the Button is Clicked:

'First, I reenable the Access menus so that they can use those to print

DoCmd.OpenReport "TransitionSurveyPaperFormLEA", acViewPreview

When I open the report on XP/Access 2007, it works just fine.

When I open the exact same accdb with a Win7/A2007 machine, the report does not open. If I debug and display the error, a msgbox appears
"The OpenReport action was canceled."

I have other bound reports and those open with XP/A2007 or Win7/A2007 just fine.

It makes me VERY nervous that the same exact ACCDB in A2007 runs differently on different OSs (XP vs Win7).

View Replies


ADVERTISEMENT

Reports :: Set Unbound Check Box To False On Open Not Working

Dec 3, 2013

I have a report with an unbound checkbox which has a null (greyed out value) when printed. I'm just trying to set it to false when the report opens.I have

Code:
Private Sub Report_Open(Cancel As Integer)
Me.CheckNotPaid = False
End Sub

but it just says 'Runtime Error -214..You can't assign a value to this object'

View 3 Replies View Related

Modules & VBA :: Open Report With Subreport Based On Unbound Form

Apr 14, 2015

I am trying to open a report (rptGMX-IRG) that includes a sub-report (srptRG) based on criteria that is set with two unbound fields on a form (frmGMXbook). This form has two dropdown boxes (cboGMX_No & cboMachSize) and a command button. The first dropdown box includes data located in the main form and the second dropdown includes data that is part of the sub-report.

I can get the report to open properly when I enter data into both fields on frmGMXbook.

However, the problem I am having is the inability to have one or both fields be "Like '*'" and show all associated records.

Here is the code I have on the command button.

Private Sub GMX_Preview_Click()
Dim strCriteria As String
If IsNull(Me.cboGMX_No) Then
strCriteria = "[cboGMX_No] Like '*'"
Else
strCriteria = "[GMX_No] ='" & Me.cboGMX_No.Value & "'"

[Code] ....

View 1 Replies View Related

Reports :: Unbound Control On A Report

Jul 7, 2015

I have run across a problem where I have an unbound control on a report that "used to work just fine" until today. It is a concatenated string:

Code:
=[ProgramCity] & "," & (" "+[Programstate]) & (" " & Left([ProgramZip4],5)) & (" "+[ProgramCpsAbbreviations])

I have this on two slightly different reports, where only one line of the report is different. One report works fine, no problems. All the data is there. But on the second report I get the dreaded #Name? error.

So I amended my query and used

Code:
CSZ:[ProgramCity] & "," & (" "+[Programstate]) & (" " & Left([ProgramZip4],5)) & (" "+[ProgramCpsAbbreviations])

And now set the field source as CSZ and it now works fine.

So my question is: Why does the concatenated code not work sometimes in a report but the same code in a query works fine?

Do reports not like concatenated fields?

View 11 Replies View Related

Reports :: Unbound Field On A Report

Jul 3, 2013

I have two numeric fields which make up what looks like a full decimalised number ie 20.22 - only I am unable to put the decimal point in between the two numbers.

I thought about putting in an unbound object such as a picture of a full-stop but cant get it anchored at the correct angle to make it look convincing in the report.As this is such a huge database I have tried to amend the tables, but it loses vital data ?

View 7 Replies View Related

Reports :: Unbound Combo Box On Report

Feb 19, 2014

I have an unbound combo box on a report that looks up to a table of address data.I have a specific requirement where if one of the bound fields on the report is a specific value, I want the combo box to show data. If the bound control on the report is a different value, I want the data in the combo box to be different.

I have tried using the OnOpen method, but it says I cannot assign a value to it.I have tried using the OnLoad procedure, but it doesn't show anything. the code is as follows:

Code:
Private Sub Report_Load(Cancel As Integer)
If Me.[Dispatch Type] = "Sent to A" Then
Me.cboDispatchTo = 15
ElseIf Me.[Dispatch Type] = "Sent to B" Then
Me.cboDispatchTo = 8
End If
End Sub

View 1 Replies View Related

Reports :: Can Create A Date Parameter Box Open Up / When Open Report

Sep 21, 2014

I have a report based on a query that has data for many dates. At the moment I have put a specific date in the criteria of the query so that I could build the report format. So it now displays all the data for the date i have in the criteria section. I will need to run this report several times per week so the specified date (and corresponding data in the report) will need to be changed to a new date when I open the report i.e. when I open my report I want to show data in the report only for a specified date.

Can I create a date parameter box open up when I open the report? Can I create a form with a button that when I click will open the report displaying data for that date? What would be the best way?I also need to display the specified date on the report.

View 5 Replies View Related

Reports :: Unbound Text Boxes In Report

Feb 5, 2015

I have 10 unbound textboxes with the Tag Name "LoopID" in my report. I have to display the "PatientNumbers" field from the table tblPatient in those text boxes. Below is my code.

When I run the report, I get the error message: Run-time error '2448.' You can't assign value to this object and the code "Ctl.Value = rst!LCANumber" is highlighted.

Private Sub Report_Current()
Dim strSql As String
Dim dbs As Database
Dim rst As Recordset
Dim x As Integer
Dim Ctl As Control
strSql = "Select PatientNumber from tblPatient"

[Code] ....

View 14 Replies View Related

Reports :: Filter A Report With Unbound Text Box

Aug 29, 2013

I have a report [Report1] that gets its data from a query [Query1]. On [Report1] there is an unbound text box [EnterEndDate] that I want to use as a filter for the report criteria, and have it filter the report to show every report row with the value in the [EndDate] field greater than what the user entered in [EnterEndDate].

There is no need to save the value used in [EnterEndDate]. It will be entered after the report is run and changed on demand while the report is open for the user to see different date ranges.

View 2 Replies View Related

Reports :: Unbound Report - Print Preview OK But None Of Fields Print When Report Directly Send To Printer

May 25, 2013

I have an unbound form with an associated report. When the user hits the 'print' button on the form/screen, the report is launched in the background. In the On Load event of the report I populate the report fields from the forms field as so:

Code:
Me.txtAddrMainLine2 = "NAME " & UCase([Forms]![frm_OrderRx].[txtPatientName])

This works like a charm as long as I call the report in Print Preview mode (i.e. with acViewPreview). But if I send the report directly to the printer, none of the fields print.

I've read about using other report events to populate the fields (e.g., On Format and On Print) and also something about using TempVars to pass the data. But I haven't read anything that's clear and definitive about the full answer.

View 3 Replies View Related

Reports :: Creating Chart In Report Using Unbound Text Boxes?

Jul 25, 2013

I am having trouble creating a chart within a report. Let me start off by explaing my report.

I have many unbound textboxes on my report that all have the code very similar to this:

" =Count(IIf([Complaints Table]![Month]=1,IIf([Complaints Table]![Decision - Our Favour? (Y/N)]="Y",0))) "

This basically gives a count of for a specific month. There are twelve rows of text boxes and two columns. There is a query applied to the report to input the year, as this is a yearly report.

What I want to do is link a chart to each and every text box to show the data in an easy to view format. But I can't seem to figure it out, and I've had no luck on the web .

View 1 Replies View Related

Reports :: Get Count Of Distinct VolunteerID In Unbound Textbox On Report?

Jan 28, 2014

SELECT qryHoursReq.VolunteerId, qryHoursReq.Name, qryHoursReq.Program, Sum(qryHoursReq.Total_Time) AS SumOfTotal_Time, qryHoursReq.S_date
FROM qryHoursReq
GROUP BY qryHoursReq.VolunteerId, qryHoursReq.Name, qryHoursReq.Program, qryHoursReq.S_date
HAVING (((qryHoursReq.S_date) Between [startdate] And [enddate]));

This is my query

I'm trying to get a count of distinct volunteerID in an unbound textbox on report.

If I use =Count(*) I get 2 when I put in date parameters and it groups by program

This is kind of correct, but, these 2 are the same person, she had different days she participated.

What code can I use for only get a count of 1

FOrgot to mention, when I use the DCount with numerous examples, I get #Error

View 2 Replies View Related

Reports :: Multiple Charts And Unbound Fields In Single Report

Jul 21, 2015

Working on a report that displays multiple pie charts. Each chart is based on a different query. I cannot pull a single query for all charts due to the criteria for each conflicting with each other. Each query is filtered by Fiscal Year based on what I input into my Fiscal Year Filter form. The command button on the FY Filter Form opens the report, set TempVar to the FY field (the criteria for each query), and closed the FY Filter Form. This works as I want it to.

The problem: I have additional fields I want to show up on the form such as number of completed students (WINGED). This number is based on yet another query where all completed students are counted [WingedCount]. I have tried to write an expression to an unbound field that points at this [WingedCount] field but it does not work. Then, I changed the report's source as the query with the [WingedCount] field. This does work, however this is where I run into an issue

I open my FY Filter Form and type in my criteria and select the open command button. However, now I am asked for the criteria again for each chart on the report.

I need a way to input the criteria only once and have all charts populate as well as my count field.

I have attached a jpeg of my current report and will upload jpegs of the needed output following this post.

View 6 Replies View Related

Reports :: Center Check Box Under Label On Report In Access 2007

Mar 21, 2013

I have created a report with the report wizard in Access 2007 that includes a check box. The check box is located under the label but to the far left side. How can I center the check box under the label?

View 10 Replies View Related

Reports :: Forced Page Break(s) In Access 2007 Report

Sep 30, 2013

I am writing a book, using MS Access 2007 (seemed like a good idea at the time I started, and the report that creates the formatted book content works quite well).

The book content is "per paragraph" which gives me total flexibility to move content to whatever spot in the book I might wish, simply by changing the paragraph number (free field, not auto-number primary).

To save paper (or pages) in printing (or viewing) the book, I have the report printing off para by para (as many whole paras as will fit to a page). This is fine but I want each new chapter to start at a forced new page, for "presentation"/appearance sake.

The relevant fields for the purposes of this post are:

paranumber
paratext
chapternumber
forcepageifticked (a Yes/No box), which goes with each paragraph and which I thought might come in handy, I had in mind to link it to a page break control at the top of the "detail" part of the report in design view, and which would be "invisible" except if the report formatting process had got to the start of any chapter, and the Yes/no box was ticked.

View 3 Replies View Related

Reports :: Access 2007 - Report Not Rendering Until Fields Are Clicked

Jul 24, 2014

Upon opening a report (it does this randomly), the report opens and it is completelty blank - no lines, lables, or fields - nothing. However, when I click on an area, the group I clicked on will render and display perfectly. So when this happens, I either have to click every where on the page or scrolling up and down (if the report is long enough) will render the whole report. It doesn't do this everytime; about 25% of the time though.

As you can imagine, when other people use the database and this happens, they freak and just think access is broken. What is causing this or what can be done to prevent this from happening?

I'm using access 2007.

View 9 Replies View Related

Reports :: Access 2007 Crashes When Running Report Based On Query

Apr 14, 2014

I have DB in access 2007. I have a report that is uses a select query to generate the information for the report. It has been working great, But however lately like maybe with in the last month, it has been causeing Access 2007 to crash. I am having the same issue with another DB that uses the same information but that information is imported in. both Databases have worked great up until two months ago. Microsoft states that it is because of the program. I have tried to repair the DB by using the Repair option. I am confused as to why this would be happening. I can create a new report and it seems to work. but I do not want to change all the DB on everyone's computer just for this reason. I also have two buttons on my report that utilize macros to close or print the report.

View 6 Replies View Related

Reports :: Access 2007 - Report Printing Black And White On Color Printer

Jan 21, 2014

I have a lovely report that includes a small color photograph. I'm sending the report to print on my HP Color LaserJet, but it is printing in black and white.

I can't find anything in the Properties that specifies whether this prints in color or black & white.

How to print this in color?

View 5 Replies View Related

Reports :: Filter A Sub Report On Open

Jun 24, 2014

I am trying to filter a subreport on open.

In my report I have a field called "Packages" and my subreport consists of a table, one of the columns is "Packages" so I want to use the value that I have in "Packages" to filter for only those items in the sub report.

Is this possible?

View 14 Replies View Related

Reports :: Open Report From Information In A Form

May 28, 2013

I have a Table with Emp_ID and Details of my Employees. I have created a query and set parameter [Enter Emp_ID]. When I pull up a report, I get a pop-up and it asks me for the Emp_ID. When I input same, I get the information I need. Everything is good so far...

My Question... I have designed a report when user will need to enter Emp_ID and click on a button and they will get the report "EMPReport" without having the pop-up window asking for EmpID.

I have been using the below code but I get the pop-up again and I need to enter the Emp_ID again to view the report

See below Code:

Code:
Private Sub Image11_Click()
If IsNull(Me.Emp_ID) Or Me.Emp_ID = "" Then
MsgBox "You must enter an Emp ID.", vbOKOnly, "Required Data"
Me.Emp_ID.SetFocus
Exit Sub
End If
DoCmd.OpenReport "Rpt_HR1", acViewPreview, , "[Emp_ID]= " & "" & Me!Emp_ID & ""
End Sub

View 13 Replies View Related

Reports :: Can't Open Report In Preview If Opened By Hyperlink

Sep 11, 2014

I have a report that will open by clicking a hyperlink and I want it to open in preview mode.

I tried using:

"DoCmd.RunCommand (acCmdPrintPreview)" or "Report.CurrentView = 5"

in the On Open event but, no success, I only get an error message.

View 1 Replies View Related

Reports :: Open Report As A Microsoft Word File

Jun 26, 2014

I want to open a simple report (restricted to the current record) but I need it as a editable MS Word file, (not printed or pdf, etc.)

Quote:

Private Sub MyReport_Click()
Dim stDocName As String
Dim strWhere As String

[code]....

I've tried several combinations of vba..I'm using Microsoft Access 2007

View 3 Replies View Related

Reports :: Open Report Action Was Canceled Popup

Nov 10, 2014

I use the following code in the On No Data event of a report:

Private Sub Report_NoData(Cancel As Integer)
MsgBox "No data exists for the date range entered.", vbInformation, "No Data Alert"
Cancel = True
End Sub

This works fine to cancel the opening of the report however Ms Access annoyingly then pop-ups another alert that reads as follows:

"The OpenReport action was cancelled". There is no error number.

I've tried putting in a DoCmd.Close after Cancel = True however this doesn't do the job.

Any way to prevent the Ms Access pop-up from appearing?

View 4 Replies View Related

Reports :: Open Report From Combobox Value With Specific Record?

Oct 3, 2014

I have one table with some info about my clients, I have a form, where I must choose this clients from combobox and then after clicking button Print must open report with info about specific (chosen from combobox) client and some another texts that doesn't change. Final result must be printed report as invoice.

I can't create report with only specific record information.

View 5 Replies View Related

Reports :: Summary Of Multiple Records - Open Report With Button

Jan 27, 2014

I have a report that is a summary of multiple records in it. What I have next to the record on the report is a button.I have report that are labeled:

rptIncident Summary
rptIncident Report
and a button labeled
"open report"

I would like to click on the button and then it open the rptIncident Report with all the information, not just the summary. I will put a picture so you know what I am trying to accomplish.Is this a simple Onclick event with a where condition or what? Or does this go beyond to having something to do with VBA?

View 14 Replies View Related

Reports :: Possible To Open A Report With Access Main Window Hidden?

Jul 18, 2014

I'm working on a database that produces employee contracts. To make it look as professional as possible I hide the Access main window when the splash screen loads using the ShowWindow function. The various forms to check and enter details all pop up without any problem, but when I get to the last stage where I use a report to produce the contract and then open it in PrintPreview mode, it won't display (unless I show the main window again , which looks very untidy!). Is it actually possible to display a report with the main Access window hidden?

View 6 Replies View Related







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