-
WSrrdavis
AskWoody LoungerI have made some slow progress with this problem. I no longer get the Save As dialog box, but I’m getting some pretty weird behavior.
If I bypass the Save As dialog box, I will get a pdf file saved as the name I intended, but the data will be wrong. Usually it is the data from the most previous running of the report. (I can specify which client to report on at runtime). It is like there is a old temp file somewhere that is being read into the “new” file–or something. The really strange this is that if I change the report page setup dialog box and specify an actual physical printer (and that is the only change I make), the report run fine and returns the expected data.
Another strange behavior: Set the PDF writer to show the SaveAs dialog box in order to type in my own filename. As the dialog box is on the screen, I can see the report running in the status bar in the background. I have yet to be able to get a PDF file saved to disk using the Save As dialog box. Entering a filename and clicking OK makes the dialog box go away and the report continues to run, but a file is not saved. If I do nothing with the dialog box, it disappears on its own once the report is nearing the end of its run. Again, no file is saved to disk.
So I set a breakpoint at the beginning of the report being run just to check to see what is happening when. When I get to the line to actually open the report object, I immediately get the Save As dialog box and the rest of the code continues, instead of line by line like it should. Any thoughts on all this. I am about to give up on PDF995.
-
WSrrdavis
AskWoody LoungerI have made some slow progress with this problem. I no longer get the Save As dialog box, but I’m getting some pretty weird behavior.
If I bypass the Save As dialog box, I will get a pdf file saved as the name I intended, but the data will be wrong. Usually it is the data from the most previous running of the report. (I can specify which client to report on at runtime). It is like there is a old temp file somewhere that is being read into the “new” file–or something. The really strange this is that if I change the report page setup dialog box and specify an actual physical printer (and that is the only change I make), the report run fine and returns the expected data.
Another strange behavior: Set the PDF writer to show the SaveAs dialog box in order to type in my own filename. As the dialog box is on the screen, I can see the report running in the status bar in the background. I have yet to be able to get a PDF file saved to disk using the Save As dialog box. Entering a filename and clicking OK makes the dialog box go away and the report continues to run, but a file is not saved. If I do nothing with the dialog box, it disappears on its own once the report is nearing the end of its run. Again, no file is saved to disk.
So I set a breakpoint at the beginning of the report being run just to check to see what is happening when. When I get to the line to actually open the report object, I immediately get the Save As dialog box and the rest of the code continues, instead of line by line like it should. Any thoughts on all this. I am about to give up on PDF995.
-
WSrrdavis
AskWoody LoungerI am needing to control the name of the PDF file and where it will be saved to, based upon some variables that are not set until runtime. My boss wants to bypass the Save As dialog box. Therefore, I need to programatically pass the filename and the path to PDF995. As far as I know, the INI file is the only way to do this. If you have any other ideas, I would be grateful.
Randy
-
WSrrdavis
AskWoody LoungerI am needing to control the name of the PDF file and where it will be saved to, based upon some variables that are not set until runtime. My boss wants to bypass the Save As dialog box. Therefore, I need to programatically pass the filename and the path to PDF995. As far as I know, the INI file is the only way to do this. If you have any other ideas, I would be grateful.
Randy
-
WSrrdavis
AskWoody LoungerMarch 8, 2004 at 4:10 am in reply to: Parameterized queries used in SQL statements (Access 2002) #795967Hans, you’re a lifesaver. I’ll try this first thing in the morning. As I’ve said in the past, I need to start paying you by the hour. Thanks for all your help.
-
WSrrdavis
AskWoody LoungerMarch 8, 2004 at 4:10 am in reply to: Parameterized queries used in SQL statements (Access 2002) #795968Hans, you’re a lifesaver. I’ll try this first thing in the morning. As I’ve said in the past, I need to start paying you by the hour. Thanks for all your help.
-
WSrrdavis
AskWoody LoungerThanks, Patricia, Hans and Charlotte, for your input.
I was aware of the reason Access recalculates before printing and agree with it, but some reports, like mine, have no need for that since I am reporting from data that has already been summarized and won’t be changing. I was just hoping there was a setting that could be changed.
Hans and Charlotte (along with a few others), you are the best. You’ve help me out many times in the Lounge. I know your hard work is appreciated by many.
-
WSrrdavis
AskWoody LoungerThanks, Patricia, Hans and Charlotte, for your input.
I was aware of the reason Access recalculates before printing and agree with it, but some reports, like mine, have no need for that since I am reporting from data that has already been summarized and won’t be changing. I was just hoping there was a setting that could be changed.
Hans and Charlotte (along with a few others), you are the best. You’ve help me out many times in the Lounge. I know your hard work is appreciated by many.
-
WSrrdavis
AskWoody LoungerCharlotte–
Thanks for the information. I’m not using this ActiveX control that I know of, so I just deleted the reference. We’ll see iff there are any problems with it.
-
WSrrdavis
AskWoody LoungerCharlotte–
Thanks for the information. I’m not using this ActiveX control that I know of, so I just deleted the reference. We’ll see iff there are any problems with it.
-
WSrrdavis
AskWoody LoungerCharlotte, thanks for your assistance.
In complying with your request I stumbled upon a partial workaround to the problem I was having. I am posting the stripped-down database as you requested. Run the frmReport form and you get the simplified version of the form I was having problems with. It works, now: change the dropdown value and the values in the subform change like I wanted them to. The values in the datasheet will later be used in another query to process the report. I realize they don’t need to be visible in order to use them later, but I want my end users to see what values are going to be used in the report. However, like you said, datasheets pose their own problems.
The embedded object isn’t really a form, but rather just a query’s datasheet. This will work to view the values, except that I cannot make changes to the values in the datasheet directly. I thought this was only a small nuisance since I could create and open another form to make changes to the values listed. To this end, open qryReportItems subform. I thought you could update data in a table through a form based on a query.
Just to be complete: frmReport will have textboxes for dates to limit the report and a command button to run the report, which will trigger a whole series of queries.
-
WSrrdavis
AskWoody LoungerCharlotte, thanks for your assistance.
In complying with your request I stumbled upon a partial workaround to the problem I was having. I am posting the stripped-down database as you requested. Run the frmReport form and you get the simplified version of the form I was having problems with. It works, now: change the dropdown value and the values in the subform change like I wanted them to. The values in the datasheet will later be used in another query to process the report. I realize they don’t need to be visible in order to use them later, but I want my end users to see what values are going to be used in the report. However, like you said, datasheets pose their own problems.
The embedded object isn’t really a form, but rather just a query’s datasheet. This will work to view the values, except that I cannot make changes to the values in the datasheet directly. I thought this was only a small nuisance since I could create and open another form to make changes to the values listed. To this end, open qryReportItems subform. I thought you could update data in a table through a form based on a query.
Just to be complete: frmReport will have textboxes for dates to limit the report and a command button to run the report, which will trigger a whole series of queries.
-
WSrrdavis
AskWoody LoungerThanks for your help, Charlotte.
A continuous form is probably a better way to go.
As to my parent form, I really have no other data on that form than what is present in the combo box. It is a form used to run a report. There are two other text boxes in the parent form used to limit the date range for the report. The combo box selects which report is to be run. The sub form lists the different groups and subgroups that will be included in that report. Other than that, no data actually appears in the forms.
I’m sure that there is probably a better way to approach this, but this is the way I came up with. Does anyone else have a different idea?? Charlotte, this is why I like getting direction from you and others here because you have so much more experience as this than I do. I haven’t done this enough to know that continous forms behave better than datasheets do.
-
WSrrdavis
AskWoody LoungerThanks for your help, Charlotte.
A continuous form is probably a better way to go.
As to my parent form, I really have no other data on that form than what is present in the combo box. It is a form used to run a report. There are two other text boxes in the parent form used to limit the date range for the report. The combo box selects which report is to be run. The sub form lists the different groups and subgroups that will be included in that report. Other than that, no data actually appears in the forms.
I’m sure that there is probably a better way to approach this, but this is the way I came up with. Does anyone else have a different idea?? Charlotte, this is why I like getting direction from you and others here because you have so much more experience as this than I do. I haven’t done this enough to know that continous forms behave better than datasheets do.
-
WSrrdavis
AskWoody LoungerYes, you are correct. it is a one-to-many relationship.
![]() |
Patch reliability is unclear. Unless you have an immediate, pressing need to install a specific patch, don't do it. |
SIGN IN | Not a member? | REGISTER | PLUS MEMBERSHIP |

Plus Membership
Donations from Plus members keep this site going. You can identify the people who support AskWoody by the Plus badge on their avatars.
AskWoody Plus members not only get access to all of the contents of this site -- including Susan Bradley's frequently updated Patch Watch listing -- they also receive weekly AskWoody Plus Newsletters (formerly Windows Secrets Newsletter) and AskWoody Plus Alerts, emails when there are important breaking developments.
Get Plus!
Welcome to our unique respite from the madness.
It's easy to post questions about Windows 11, Windows 10, Win8.1, Win7, Surface, Office, or browse through our Forums. Post anonymously or register for greater privileges. Keep it civil, please: Decorous Lounge rules strictly enforced. Questions? Contact Customer Support.
Search Newsletters
Search Forums
View the Forum
Search for Topics
Recent Topics
-
The time has come for AI-generated art
by
Catherine Barrett
2 hours, 26 minutes ago -
Hackers are using two-factor authentication to infect you
by
B. Livingston
2 hours, 27 minutes ago -
23 and you
by
Max Stul Oppenheimer
2 hours, 29 minutes ago -
April’s deluge of patches
by
Susan Bradley
1 hour, 49 minutes ago -
April’s deluge of patches
by
Susan Bradley
2 hours, 29 minutes ago -
Windows 11 Windows Updater question
by
Tex265
10 hours, 40 minutes ago -
Key, Key, my kingdom for a Key!
by
RetiredGeek
17 hours, 35 minutes ago -
Registry Patches for Windows 10
by
Drcard:))
22 hours, 6 minutes ago -
Cannot get line length to NOT wrap in Outlining in Word 365
by
CWBillow
4 hours, 40 minutes ago -
DDU (Display Driver Uninstaller) updates
by
Alex5723
15 hours, 28 minutes ago -
Align objects on a OneNote page
by
CWBillow
1 day, 3 hours ago -
OneNote Send To button?
by
CWBillow
1 day, 4 hours ago -
WU help needed with “Some settings are managed by your organization”
by
Peobody
1 day, 12 hours ago -
No Newsletters since 27 January
by
rog7
1 day, 8 hours ago -
Linux Mint Debian Edition 7 gets OEM support, death of Ubuntu-based Mint ?
by
Alex5723
13 hours, 23 minutes ago -
Windows Update “Areca Technology Corporation – System – 6.20.0.41”
by
Bruce
12 hours, 3 minutes ago -
Google One Storage Questions
by
LHiggins
3 hours, 10 minutes ago -
Button Missing for Automatic Apps Updates
by
pmcjr6142
3 hours, 17 minutes ago -
Ancient SSD thinks it’s new
by
WSila
17 hours, 59 minutes ago -
Washington State lab testing provider exposed health data of 1.6 million people
by
Nibbled To Death By Ducks
2 days, 3 hours ago -
WinRE KB5057589 fake out
by
Susan Bradley
2 hours, 43 minutes ago -
The April 2025 Windows RE update might show as unsuccessful in Windows Update
by
Susan Bradley
1 day, 11 hours ago -
Firefox 137
by
Charlie
14 hours, 23 minutes ago -
Whisky, a popular Wine frontend for Mac gamers, is no more
by
Alex5723
2 days, 16 hours ago -
Windows 11 Insider Preview build 26120.3863 (24H2) released to BETA
by
joep517
2 days, 16 hours ago -
Windows 11 Insider Preview build 26200.5551 released to DEV
by
joep517
2 days, 16 hours ago -
New Windows 11 PC setup — can I start over in the middle to set up a local id?
by
ctRanger
1 day, 12 hours ago -
Windows 11 Insider Preview Build 26100.3902 (24H2) released to Release Preview
by
joep517
2 days, 19 hours ago -
Oracle kinda-sorta tells customers it was pwned
by
Nibbled To Death By Ducks
3 days, 1 hour ago -
Global data centers (AI) are driving a big increase in electricity demand
by
Kathy Stevens
3 days, 12 hours ago
Recent blog posts
Key Links
Want to Advertise in the free newsletter? How about a gift subscription in honor of a birthday? Send an email to sb@askwoody.com to ask how.
Mastodon profile for DefConPatch
Mastodon profile for AskWoody
Home • About • FAQ • Posts & Privacy • Forums • My Account
Register • Free Newsletter • Plus Membership • Gift Certificates • MS-DEFCON Alerts
Copyright ©2004-2025 by AskWoody Tech LLC. All Rights Reserved.