473,383 Members | 1,821 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,383 software developers and data experts.

Close button bug

Hello,

I have a form in an Access 2003 application which opens maximized.
Its CloseButton property is set to false. On this form I have a
command button that opens a report in preview mode. The report opens
fine. It opens maximized as one would expect. However, the report
preview window's close button is disabled which is confusing to my
users (they have to click the resize button on the preview window
which then restores the close button). Office SP3 does not seem to
help. Is there a better workaround than this to restore my report
preview close button?

I can reproduce this behavior in the Northwind db as follows:

Add a docmd.Maximize to the load event of the Categories form.
Add a command button to the Categories form.
In the command button's click event add

DoCmd.OpenReport "Summary of Sales by Year", acViewPreview, , ,
acWindowNormal

I open the Category form in form view and click the command button and
note that the report preview's close button is not visible.

Bruce
Feb 13 '08 #1
2 3343
On Wed, 13 Feb 2008 13:35:46 -0800 (PST), Bruce
<de***************@gmail.comwrote:

EXCELLENT message.
I know it doewsn't help right now, but In A2007 the problem goes away:
a form can have the close button off, while a subsequent report has it
on and can be closed that way.
You may want to examine if you REALLY need to suppress the Close
button. There rarely is a good case for it, with the Unload event that
can be cancelled:
if SomeConditionsArentRight() then
Cancel = True
Msgbox "Yo! Can't close right now!"
end if
and a Close event for processing while the form is actually going to
close.

-Tom.

>Hello,

I have a form in an Access 2003 application which opens maximized.
Its CloseButton property is set to false. On this form I have a
command button that opens a report in preview mode. The report opens
fine. It opens maximized as one would expect. However, the report
preview window's close button is disabled which is confusing to my
users (they have to click the resize button on the preview window
which then restores the close button). Office SP3 does not seem to
help. Is there a better workaround than this to restore my report
preview close button?

I can reproduce this behavior in the Northwind db as follows:

Add a docmd.Maximize to the load event of the Categories form.
Add a command button to the Categories form.
In the command button's click event add

DoCmd.OpenReport "Summary of Sales by Year", acViewPreview, , ,
acWindowNormal

I open the Category form in form view and click the command button and
note that the report preview's close button is not visible.

Bruce
Feb 13 '08 #2
On Feb 13, 5:01 pm, Tom van Stiphout <no.spam.tom7...@cox.netwrote:
On Wed, 13 Feb 2008 13:35:46 -0800 (PST), Bruce

<deluxeinformat...@gmail.comwrote:

EXCELLENT message.
I know it doewsn't help right now, but In A2007 the problem goes away:
a form can have the close button off, while a subsequent report has it
on and can be closed that way.
You may want to examine if you REALLY need to suppress the Close
button. There rarely is a good case for it, with the Unload event that
can be cancelled:
if SomeConditionsArentRight() then
Cancel = True
Msgbox "Yo! Can't close right now!"
end if
and a Close event for processing while the form is actually going to
close.

-Tom.
Hello,
I have a form in an Access 2003 application which opens maximized.
Its CloseButton property is set to false. On this form I have a
command button that opens a report in preview mode. The report opens
fine. It opens maximized as one would expect. However, the report
preview window's close button is disabled which is confusing to my
users (they have to click the resize button on the preview window
which then restores the close button). Office SP3 does not seem to
help. Is there a better workaround than this to restore my report
preview close button?
I can reproduce this behavior in the Northwind db as follows:
Add a docmd.Maximize to the load event of the Categories form.
Add a command button to the Categories form.
In the command button's click event add
DoCmd.OpenReport "Summary of Sales by Year", acViewPreview, , ,
acWindowNormal
I open the Category form in form view and click the command button and
note that the report preview's close button is not visible.
Bruce
Hi Tom,

Good suggestion. I imagine I will end up using the form's Unload
event and re-enabling its Close button. It'd just be nice if Access
did what it was supposed to. Thanks for the helpful reply!

Bruce
Feb 14 '08 #3

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

6
by: marcelf3 | last post by:
Hello.. This page opens a window with some information, but everytime the user changes a field in the parent window, the child window needs to be closed. These 2 functions were supposed to do the...
6
by: Sujan | last post by:
Hello all, Help me! -------------------- <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN"> <html> <head> <script language="JavaScript"> <!--
1
by: dibyendu_k | last post by:
Hi, There is a problem i cant solve regarding Internet Explorer 5.5. It is regarding the Print Dialog Box. From a webpage if I open a popup window (window.open()) containing buttons Print and...
5
by: Reggie | last post by:
Hi and TIA! I have a form and have set the Close Button to false so that users must exit using my close button. However when I open a Report from this form I want the close button to be available...
7
by: Toccoa | last post by:
After considerable googling - I mean searching with Google(r) - I could not find javascript on a button or <a href=... to close a window in the latest versions of IE and FireFox. There seemed...
2
by: Del | last post by:
I have a popup form that consist of a single field called EnteredBy and a Subform that has three fields. The popup form also has a button in the Form Footer called close. In the On Click event I...
0
by: Tony | last post by:
I am continuing to develop an Access 2007 application which was originally converted from Access 2003. In Access 2003 I was able to disable the Access Close button in the top righthand corner of...
5
by: Tony | last post by:
I am continuing to develop an Access 2007 application which was originally converted from Access 2003. In Access 2003 I was able to disable the Access Close button in the top righthand corner of...
7
by: Sin Jeong-hun | last post by:
I have a dialog form which pops up from the main window using the ShowDialog() method. this dialog has no or button, and it has quite a lot of controls on it. Now, I want to close this dialog...
0
by: ryjfgjl | last post by:
In our work, we often need to import Excel data into databases (such as MySQL, SQL Server, Oracle) for data analysis and processing. Usually, we use database tools like Navicat or the Excel import...
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
0
by: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.