Using A2K. I have a form that allows the user to print one or more
reports. The user checks which report they want printed then they
click on a button to start printing. A popup form displays when they
click on the button and prompts them for a date range. This date
range is then used on each report. (I make the popup invisible when
the range is entered. So it's open during the printing so that the
reports can access the date range.)
After the last report has printed, I want to close the popup form then
redisplay it if the user requests more printing. My problem is that
I'm not sure how to tell when the last report has printed.
Thanks for any help or advice. 4 2628
Put the following code in the click event of your button:
DoCmd.OpenForm "NameOfDatePopu pForm",,,,,acDi alog
<<Code to run the selected reports>>
Docmd.Close acForm, "NameOfDatePopu pForm"
--
PC Datasheet
Your Resource For Help With Access, Excel And Word Applications re******@pcdata sheet.com www.pcdatasheet.com
"Ellen Manning" <ma**********@h otmail.com> wrote in message
news:da******** *************** **@posting.goog le.com... Using A2K. I have a form that allows the user to print one or more reports. The user checks which report they want printed then they click on a button to start printing. A popup form displays when they click on the button and prompts them for a date range. This date range is then used on each report. (I make the popup invisible when the range is entered. So it's open during the printing so that the reports can access the date range.)
After the last report has printed, I want to close the popup form then redisplay it if the user requests more printing. My problem is that I'm not sure how to tell when the last report has printed.
Thanks for any help or advice.
Perhaps you could avoid the problem altogether, by having two unbound
controls on the report form for the user to enter the to and from dates.
Clive
"Ellen Manning" <ma**********@h otmail.com> wrote in message
news:da******** *************** **@posting.goog le.com... Using A2K. I have a form that allows the user to print one or more reports. The user checks which report they want printed then they click on a button to start printing. A popup form displays when they click on the button and prompts them for a date range. This date range is then used on each report. (I make the popup invisible when the range is entered. So it's open during the printing so that the reports can access the date range.)
After the last report has printed, I want to close the popup form then redisplay it if the user requests more printing. My problem is that I'm not sure how to tell when the last report has printed.
Thanks for any help or advice.
Yeah, that sounds like a good suggestion. I'll try that. Thanks.
"CDB" <al***@delete.w ave.co.nz> wrote in message news:<c0******* ***@news.wave.c o.nz>... Perhaps you could avoid the problem altogether, by having two unbound controls on the report form for the user to enter the to and from dates.
Clive
"Ellen Manning" <ma**********@h otmail.com> wrote in message news:da******** *************** **@posting.goog le.com... Using A2K. I have a form that allows the user to print one or more reports. The user checks which report they want printed then they click on a button to start printing. A popup form displays when they click on the button and prompts them for a date range. This date range is then used on each report. (I make the popup invisible when the range is entered. So it's open during the printing so that the reports can access the date range.)
After the last report has printed, I want to close the popup form then redisplay it if the user requests more printing. My problem is that I'm not sure how to tell when the last report has printed.
Thanks for any help or advice.
Sorry, should have been more clear. I tried that but the form closed
before all the reports printed. Therefore I got prompted for the
dates with each report. Thanks for your reply.
"PC Datasheet" <sp**@nospam.sp am> wrote in message news:<bL******* ********@newsre ad3.news.atl.ea rthlink.net>... Put the following code in the click event of your button:
DoCmd.OpenForm "NameOfDatePopu pForm",,,,,acDi alog
<<Code to run the selected reports>>
Docmd.Close acForm, "NameOfDatePopu pForm"
-- PC Datasheet Your Resource For Help With Access, Excel And Word Applications re******@pcdata sheet.com www.pcdatasheet.com
"Ellen Manning" <ma**********@h otmail.com> wrote in message news:da******** *************** **@posting.goog le.com... Using A2K. I have a form that allows the user to print one or more reports. The user checks which report they want printed then they click on a button to start printing. A popup form displays when they click on the button and prompts them for a date range. This date range is then used on each report. (I make the popup invisible when the range is entered. So it's open during the printing so that the reports can access the date range.)
After the last report has printed, I want to close the popup form then redisplay it if the user requests more printing. My problem is that I'm not sure how to tell when the last report has printed.
Thanks for any help or advice. This thread has been closed and replies have been disabled. Please start a new discussion. Similar topics |
by: MJEASSOC |
last post by:
I need some help with closing a popup window. I'm making an online portfolio,
that has one base page with text and thumbnails. When a user clicks on a thumb,
a new window opens containing a larger image and a caption (each contained on a
separate htm document).
I do this with a function in the header script as follows:
var picpage=" ";
var params=" ";
|
by: deko |
last post by:
I have a pop-up form in which user-defined parameters are entered. The
parameters are entered into a subform datasheet which is bound to a table.
I need to check the product of two parameters to make sure they are valid
before updating them (or closing the popup form), so I use this code:
Private Function BadValue() As Boolean
If Me!Die * Me!Site > 32000 Or Me!Die * Me!Site < 0 Then
MsgBox "Die and/or Site out of range." & vbCrLf &...
|
by: SteveS |
last post by:
Hello. This is a strange problem which does not make sense to me.
I open a popup page with the following javascript code:
function OpenDenyWindow(changeId) {
retVal=window.showModalDialog('DenialEmailForm.aspx?id=1234'',
'dialogWidth:650px; dialogHeight:700px; resizable:no;');
//alert("Return val = " + retVal)
}
|
by: thechaosengine |
last post by:
Hi all,
I need to be able to cause the following chain of events after clicking an
asp:button but I don't know how to do it. I'd really appreciate any advice
on this or alternative approaches:
The window in question is a popup asking the user to provide some details.
The primary window is still open in the background
1. Button on popup clicked
|
by: rdemyan |
last post by:
I'm using code from the following web page to open the API Browse Folder
dialog
http://www.mvps.org/access/api/api0002.htm
It all works fine. But if the dialog box is open and the user closes Access,
the system just hangs and Access apparantly cannot close. I have to open the
Windows Task Manager and force the closing (and even that takes quite awhile).
| |
by: Tyrone Slothrop |
last post by:
Any idea of why this will not work? I have an image editor in a popup
that is opened from a form in a window containing data as well as
displaying images for the record. When the image has been saved, it
posts to the form in the opener from the popup, updating the record
with the new image.
Everything is working perfectly but the popup refuses to close.
After the image is saved to the server, this is the HTML which is
generated:
|
by: Macbane |
last post by:
Hi,
I have a 'main' form called frmIssues which has a subform control
(named linkIssuesDrug) containing the subform sfrmLink_Issues_Drugs.
A control button on the main form opens a pop-up form which allows me
to edit the record in the subform. What I want to happen is for
subform with the new edits to be updated on the main form when I close
the popup. I'm sure this is a very small bit of code in the the 'On
close' event for the popup...
|
by: =?Utf-8?B?Vk1J?= |
last post by:
How can I close popup window automatically when I close the parent window
(the application itself)?
Thanks.
|
by: Mike Hofer |
last post by:
Okay, here's the situation: we want to be able to display ASPX pages
in an UpdatePanel. The reasons for this are performance related. The
site in development uses *lots* of modal popups from some pages, and
we don't want to load all that content until it's requested.
So, what we want to do is place an IFRAME inside an UpdatePanel and,
in the onclick event for the linkbutton or button control, set the SRC
so that the content is loaded on...
|
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: 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: tracyyun |
last post by:
Dear forum friends,
With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
|
by: agi2029 |
last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own....
Now, this would greatly impact the work of software developers. The idea...
|
by: conductexam |
last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one.
At the time of converting from word file to html my equations which are in the word document file was convert into image.
Globals.ThisAddIn.Application.ActiveDocument.Select();...
|
by: 6302768590 |
last post by:
Hai team
i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
|
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...
| |