I have been asked to look at an Access application. It generates a
report successfully, so that you can see it on the screen with no
errors.
However, when you try to print it, the prompt dialog for missing
parameter is displayed.
Anyone any thoughts?
Sorry it's rather sort on detail, but I've been passed the details of
the problem by someone else. I'm expected to sort the problem on a
site visit and I don't know if I'll have Internet access on-site.
TIA
Edward 5 2396
Unfortunately, without much more information, the problem could be in many
different places. Here are a couple of the more likely ones. First run the
query and see if you get prompt. Then look in the Sorting and Grouping
dialog and see if there are any fields which are no longer in the data set.
--
Arvin Meyer, MCP, MVP http://www.datastrat.com http://www.mvps.org/access http://www.accessmvp.com
<te********@hot mail.comwrote in message
news:11******** **************@ e3g2000cwe.goog legroups.com...
>I have been asked to look at an Access application. It generates a
report successfully, so that you can see it on the screen with no
errors.
However, when you try to print it, the prompt dialog for missing
parameter is displayed.
Anyone any thoughts?
Sorry it's rather sort on detail, but I've been passed the details of
the problem by someone else. I'm expected to sort the problem on a
site visit and I don't know if I'll have Internet access on-site.
TIA
Edward
Wouldn't those conditions hold true even in preview mode?
How do you print the report? Via the print icon in Access or did you
code an option to print or preview? If so, perhaps there is a bad
where clause being passed when you choose print?
-Brian
Arvin Meyer [MVP] wrote:
Unfortunately, without much more information, the problem could be in many
different places. Here are a couple of the more likely ones. First run the
query and see if you get prompt. Then look in the Sorting and Grouping
dialog and see if there are any fields which are no longer in the data set.
--
Arvin Meyer, MCP, MVP http://www.datastrat.com http://www.mvps.org/access http://www.accessmvp.com
<te********@hot mail.comwrote in message
news:11******** **************@ e3g2000cwe.goog legroups.com...
I have been asked to look at an Access application. It generates a
report successfully, so that you can see it on the screen with no
errors.
However, when you try to print it, the prompt dialog for missing
parameter is displayed.
Anyone any thoughts?
Sorry it's rather sort on detail, but I've been passed the details of
the problem by someone else. I'm expected to sort the problem on a
site visit and I don't know if I'll have Internet access on-site.
TIA
Edward
BerkshireGuy wrote:
Wouldn't those conditions hold true even in preview mode?
How do you print the report? Via the print icon in Access or did you
code an option to print or preview? If so, perhaps there is a bad
where clause being passed when you choose print?
-Brian
That's what I thought. Obviously I'll take a look at Arvin's
suggestions, but my thinking (bearing in mind that I *didn't* write the
app., and in fact have never seen it!) is that if it gets as far as
generating the report on screen it's unlikely to be a problem with the
underlying query.
I'll post again when I've figured it out, or have more information.
Edward
Does the report contain a graph?
I have one with a parameter in the graph's source query that accepts my
input before the preview and repeats the prompt when printed.
<te********@hot mail.comwrote in message
news:11******** **************@ e3g2000cwe.goog legroups.com...
I have been asked to look at an Access application. It generates a
report successfully, so that you can see it on the screen with no
errors.
However, when you try to print it, the prompt dialog for missing
parameter is displayed.
Anyone any thoughts?
Sorry it's rather sort on detail, but I've been passed the details of
the problem by someone else. I'm expected to sort the problem on a
site visit and I don't know if I'll have Internet access on-site.
TIA
Edward
Ignore what I wrote - the person who relayed the problem details was
misled.
The problem comes, as I suspected, when the report is actually being
generated on-screen. As Brian suggested, the report is being "Printed"
via a button, which simply opens the report.
The report contains a number of sub-reports, one of which contains a
text box with the following ControlSource:
=(Str([Quantity]))+(" no. "+[CutOutDescripti on])
When opening the report, the parameter would prompt for "Str"
This led me to think that there was either a References problem or a
Compilation problem. The References checked out, but the program
didn't compile. It barfed in the following sub:
Private Sub Text28_AfterUpd ate()
Dim stDocName As String
stDocName = "qryEstimateTot als"
DoCmd.Requery stDocName, acNormal, acEdit
End Sub
The offending line is:
DoCmd.Requery stDocName, acNormal, acEdit
and the error is:
"Wrong number of arguments or invalid property assignment"
If I amend the line to:
DoCmd.Requery stDocName
all is well - the application compiles and doesn't prompt for a
parameter called Str!
What I want to know is:
How did anyone ever get the damn thing to work in the first place?
Please do bear in mind that I DID NOT write this - for a start, I never
leave my controls with their default names (e.g. Text28) And what is
the purpose, do you suppose, of the line
DoCmd.Requery stDocName, acNormal, acEdit
Thanks
Edward This thread has been closed and replies have been disabled. Please start a new discussion. Similar topics |
by: Lloyd Stevens |
last post by:
I'm trying to create a report from two queries, one query displays
which customers bought a particular product, the quantity and price
using the "Enter productID" as parameter
While the other is displaying the dates which the product was bought
quantity and price also using "Enter productID" as parameter
In the report footer a calculation is made to display the quantatiy
left in stock and the value of stock left.
|
by: Sami |
last post by:
I hope someone will tell me how to do this without having to do any VB
as I know nothing in that area. I am a rank beginner in using Access.
I have created a database consisting of student athletes. I have now
learned how to join two different tables in a query so that I might
generate a report.
Specifically, student athletes at a community college are required to
graduate with an AA or AS degree. Consequently, various steps are in...
|
by: Mike Conklin |
last post by:
This one really has me going. Probably something silly. I'm using
dcount for a report to determine the number of different types of
tests proctored in a semester.
My report is based on a parameter query which is the recordsource for
the report. The parameter is <=. The query returns the
correct amounts upto the date entered (no need for "between" dates
here).
There are 8 textboxes with dcounts; 2 other boxes Sum some of these
|
by: Bryan |
last post by:
I've been looking over this newsgroup, but I can't find an answer to my
problem. I see that a few others have posted this issue over the
years, but none of them got a response. I'll give it another shot.
I have a report that is based on a crosstab query. The crosstab query
is based off of another query, and that has a parameter in the where
clause. Like this:
WHERE e.elevationid = !!
|
by: Bill Nguyen |
last post by:
Report source is an SQLSERVER 2K store procedure. VB.NET application. Report
created by CR 8.5.
At runtime, I still had to click "CANCEL" to bypass the parameter prompts
before the report display correctly. Also, print option grayed out although
it was available at design time.
Thanks a million!
Bill
| |
by: fieldja |
last post by:
I have a form called OwnerForm. It contains a combo box called
Owner. The combo box looks up names from a table called OwnerName.
It contains fields called OwnerID and Owner. I also have a main form
called ProjectsForm. This form has several fields to enter data. I
have a query that is called Owner Query. This query contains the
fields IDNumber.Projects2 Team.Projects2 and Owner.OwnerName getting
information from tables.
On the...
|
by: Studiotyphoon |
last post by:
Hi,
I have report which I need to print 3 times, but would like to have
the following headings
Customer Copy - Print 1
Accounts Copy - Print 2
File Copy -Print 3
I created a macro to print the report three times, but do not know how
|
by: geolemon |
last post by:
I'm still relatively new to Access - this question is due to my moderate experience with forms and my complete and total lack of experience with reports.
I want to create a report (I use that term conceptually) that prompts an end user to input an assembly number, and kicks out a report that sums up what and how many of each component is used in an assembly.
So, my first question is - how do I create a report that prompts a user for input?...
|
by: DanicaDear |
last post by:
I am trying my hand at my first ever Access report. It is based on a two parameter query (start date, end date). When I use the report wizard and click "view report" the report prompts me for the two queries. Great! However, when I close it and re-run the report, it prompts me for a third parameter: HOTSTICK_FAILURE.DATE_ENTERED. The first half is a table name; the second half is a table field name.
The query this report is based off...
|
by: marktang |
last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look !
Part I. Meaning of...
|
by: Hystou |
last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it.
First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
| |
by: Oralloy |
last post by:
Hello folks,
I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>".
The problem is that using the GNU compilers, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed.
This is as boiled down as I can make it.
Here is my compilation command:
g++-12 -std=c++20 -Wnarrowing bit_field.cpp
Here is the code in...
|
by: jinu1996 |
last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth.
The Art of Business Website Design
Your website is...
|
by: Hystou |
last post by:
Overview:
Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
|
by: isladogs |
last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM).
In this session, we are pleased to welcome a new presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules.
He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms.
Adolph will...
|
by: TSSRALBI |
last post by:
Hello
I'm a network technician in training and I need your help.
I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs.
The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols.
I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
|
by: muto222 |
last post by:
How can i add a mobile payment intergratation into php mysql website.
| |
by: bsmnconsultancy |
last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...
| |