Hi,
I am still a newbie to VB and using MS Access 2000. I am currently
trying to provide a preview of reports before printing them. My
program is simple:
AC.DoCmd.OpenReport "MyReport", acViewPreview
AC.Visible = True
AC.DoCmd.ShowToolbar "Print Preview", acToolbarNo
AC.DoCmd.ShowToolbar "Menu Bar", acToolbarNo
AC.DoCmd.Maximize
The report preview is successfully launched. My problem lies on how
to close the preview without closing the database. With this code,
only the Minimize, Maximize and Close button on the upper right
corner of the window remains. My only means of closing the preview
window is by pressing the Close (X) button. However, when I close my
application, the code that closes my database reports an error that
the database is already closed.
Can somebody show me a better way to do this?
Thanks a lot,
nick_faye 5 3023
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
Don't hide the Print Preview toolbar, it has a "Close" button on it.
Create your own custom toolbar that just has the Print Preview "Close"
button. Set the all the reports' Toolbar property to this custom
toolbar.
You can close any open object (except modal forms) in Access with the
Ctrl-W key combination.
Learn how to distinguish between the report's close button (X in upper
right) from Access' close button (X in upper right above the report's
close button).
--
MGFoster:::mgf00 <at> earthlink <decimal-point> net
Oakland, CA (USA)
-----BEGIN PGP SIGNATURE-----
Version: PGP for Personal Privacy 5.0
Charset: noconv
iQA/AwUBQiykeYechKqOuFEgEQLzCwCeKYD6g5pWMjHUyLj/zfQHkFM2Jc8An0Ug
3M1cyMAtJ12xszBTXQiSWAfB
=e7s0
-----END PGP SIGNATURE-----
nick_faye wrote: Hi,
I am still a newbie to VB and using MS Access 2000. I am currently trying to provide a preview of reports before printing them. My program is simple:
AC.DoCmd.OpenReport "MyReport", acViewPreview AC.Visible = True AC.DoCmd.ShowToolbar "Print Preview", acToolbarNo AC.DoCmd.ShowToolbar "Menu Bar", acToolbarNo AC.DoCmd.Maximize
The report preview is successfully launched. My problem lies on how to close the preview without closing the database. With this code, only the Minimize, Maximize and Close button on the upper right corner of the window remains. My only means of closing the preview window is by pressing the Close (X) button. However, when I close my application, the code that closes my database reports an error that the database is already closed.
Can somebody show me a better way to do this?
Hi,
Thanks for responding. Create your own custom toolbar that just has the Print Preview "Close" button. Set the all the reports' Toolbar property to this custom toolbar.
Can you please point me to the right direction where I can find
tutorials on how to do this? Sorry, but I'm on the tight schedule.
Any help that can give me light on how to do this faster is very much
appreciated.
Thank you very much,
nick_faye
MGFoster <me@privacy.com> wrote in message news:<Wv*****************@newsread1.news.pas.earth link.net>... -----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1
Don't hide the Print Preview toolbar, it has a "Close" button on it.
Create your own custom toolbar that just has the Print Preview "Close" button. Set the all the reports' Toolbar property to this custom toolbar.
You can close any open object (except modal forms) in Access with the Ctrl-W key combination.
Learn how to distinguish between the report's close button (X in upper right) from Access' close button (X in upper right above the report's close button).
-- MGFoster:::mgf00 <at> earthlink <decimal-point> net Oakland, CA (USA)
-----BEGIN PGP SIGNATURE----- Version: PGP for Personal Privacy 5.0 Charset: noconv
iQA/AwUBQiykeYechKqOuFEgEQLzCwCeKYD6g5pWMjHUyLj/zfQHkFM2Jc8An0Ug 3M1cyMAtJ12xszBTXQiSWAfB =e7s0 -----END PGP SIGNATURE-----
nick_faye wrote: Hi,
I am still a newbie to VB and using MS Access 2000. I am currently trying to provide a preview of reports before printing them. My program is simple:
AC.DoCmd.OpenReport "MyReport", acViewPreview AC.Visible = True AC.DoCmd.ShowToolbar "Print Preview", acToolbarNo AC.DoCmd.ShowToolbar "Menu Bar", acToolbarNo AC.DoCmd.Maximize
The report preview is successfully launched. My problem lies on how to close the preview without closing the database. With this code, only the Minimize, Maximize and Close button on the upper right corner of the window remains. My only means of closing the preview window is by pressing the Close (X) button. However, when I close my application, the code that closes my database reports an error that the database is already closed.
Can somebody show me a better way to do this?
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
Right click on any toolbar. Select Customize.
Under the Toolbars tab of the Customize dialog box either select one of
the current toolbars or click the New button to create a new toolbar.
Under the Commands tab select View in the Categories ListBox. Then in
the Commands ListBox find the word Close. Drag & drop Close onto your
new toolbar.
Close the Customize dialog box.
Open your report in design view.
In the report's Property dialog box under the Other tab, select the new
toolbar's name in the Toolbar property drop-down list.
Close & save the report.
Now the report will pop-up this toolbar whenever it is open.
--
MGFoster:::mgf00 <at> earthlink <decimal-point> net
Oakland, CA (USA)
-----BEGIN PGP SIGNATURE-----
Version: PGP for Personal Privacy 5.0
Charset: noconv
iQA/AwUBQi3wQoechKqOuFEgEQKZZACfUsTmiQ8hPKsDQe8uEUheTu aohwEAoLu/
hNjZs0j94zxzFqHDQuhj1PhZ
=xCMc
-----END PGP SIGNATURE-----
nick_faye wrote: Can you please point me to the right direction where I can find tutorials on how to do this? Sorry, but I'm on the tight schedule. Any help that can give me light on how to do this faster is very much appreciated.
Thank you very much! I'll try this tonight.
nick_faye
MGFoster <me@privacy.com> wrote in message news:<_e*****************@newsread3.news.pas.earth link.net>... -----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1
Right click on any toolbar. Select Customize.
Under the Toolbars tab of the Customize dialog box either select one of the current toolbars or click the New button to create a new toolbar.
Under the Commands tab select View in the Categories ListBox. Then in the Commands ListBox find the word Close. Drag & drop Close onto your new toolbar.
Close the Customize dialog box.
Open your report in design view.
In the report's Property dialog box under the Other tab, select the new toolbar's name in the Toolbar property drop-down list.
Close & save the report.
Now the report will pop-up this toolbar whenever it is open.
-- MGFoster:::mgf00 <at> earthlink <decimal-point> net Oakland, CA (USA)
-----BEGIN PGP SIGNATURE----- Version: PGP for Personal Privacy 5.0 Charset: noconv
iQA/AwUBQi3wQoechKqOuFEgEQKZZACfUsTmiQ8hPKsDQe8uEUheTu aohwEAoLu/ hNjZs0j94zxzFqHDQuhj1PhZ =xCMc -----END PGP SIGNATURE-----
nick_faye wrote: Can you please point me to the right direction where I can find tutorials on how to do this? Sorry, but I'm on the tight schedule. Any help that can give me light on how to do this faster is very much appreciated.
Hi again,
What you were suggesting was cool! However, my problem is, whenever i
press the "Close" button, the tables, queries and reports are now
accessible which should not be the case. Users should not be allowed
to view the data directly from the database. Is there any other way
to do this without exposing the data of my database after closing the
preview window?
Thanks,
nick_faye iv******@yahoo.com (nick_faye) wrote in message news:<8a**************************@posting.google. com>... Thank you very much! I'll try this tonight.
nick_faye
MGFoster <me@privacy.com> wrote in message news:<_e*****************@newsread3.news.pas.earth link.net>... -----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1
Right click on any toolbar. Select Customize.
Under the Toolbars tab of the Customize dialog box either select one of the current toolbars or click the New button to create a new toolbar.
Under the Commands tab select View in the Categories ListBox. Then in the Commands ListBox find the word Close. Drag & drop Close onto your new toolbar.
Close the Customize dialog box.
Open your report in design view.
In the report's Property dialog box under the Other tab, select the new toolbar's name in the Toolbar property drop-down list.
Close & save the report.
Now the report will pop-up this toolbar whenever it is open.
-- MGFoster:::mgf00 <at> earthlink <decimal-point> net Oakland, CA (USA)
-----BEGIN PGP SIGNATURE----- Version: PGP for Personal Privacy 5.0 Charset: noconv
iQA/AwUBQi3wQoechKqOuFEgEQKZZACfUsTmiQ8hPKsDQe8uEUheTu aohwEAoLu/ hNjZs0j94zxzFqHDQuhj1PhZ =xCMc -----END PGP SIGNATURE-----
nick_faye wrote: Can you please point me to the right direction where I can find tutorials on how to do this? Sorry, but I'm on the tight schedule. Any help that can give me light on how to do this faster is very much appreciated. This thread has been closed and replies have been disabled. Please start a new discussion. Similar topics
by: PWright |
last post by:
I have a runtime Access XP db that uses a Crystal Reports control
(crystl32.ocx). The Crystal Reports are written in 8.5. The database
shuts down fine unless a Crystal Report has been opened. ...
|
by: Nathan Bloomfield |
last post by:
Does anyone know if there is any documentation which relates to Access2k + ?
or can anyone help adjust the code?
I am having trouble converting the DAO references.
TITLE :INF: How to...
|
by: Robin Cushman |
last post by:
Hi all,
I need some help -- I'm working with an A2K database, using DAO, and
am trying to read records into a Crystal Report and then export it to
a folder on our network as an Excel...
|
by: Greg |
last post by:
On my report I want to have an opening balance signifying all transactions
up to the month selected
and detailed transactions for the month selected
and then a closing blance.
I'm perpelexed...
|
by: Rick Caborn |
last post by:
I am having a problem with an Access 2000 report getting data from SQL
Server 2000. Here are the specifications for it:
RecordSource: a stored procedure (tested via query analyzer and working...
|
by: Richard Hollenbeck |
last post by:
I tried to ask this question before on the 14th of January but I never got a
reply. I'm still struggling with the problem. I'll try to rephrase the
question:
I have a crosstab query with rows...
|
by: alecjames1 |
last post by:
I have a form which the user must complete before closing. I have
disabled the window x button and use my own exit button. When selected
it checks to see if the user has completed the entries...
|
by: faisalmushtaq |
last post by:
Hi all,
i am facing a problem regarding crystal reports.i am working on a software which contains a large number of crystal reports.A user might open a large number of reports having different...
|
by: klaas |
last post by:
Hi,
i'am writing a program in vb.net 2005 based on an access database.
Now, i want to close my program automaticly when the user is inactive to a
period of eg 10 minutes. I want to close all mine...
|
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...
|
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...
|
by: BarryA |
last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
|
by: nemocccc |
last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
|
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,...
|
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,...
|
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...
|
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...
|
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...
| |