A Microsoft Office (Excel, Word) forum. OfficeFrustration

If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below.

Go Back   Home » OfficeFrustration forum » Microsoft Access » General Discussion
Site Map Home Register Authors List Search Today's Posts Mark Forums Read  

Access report management



 
 
Thread Tools Display Modes
  #1  
Old December 12th, 2008, 12:21 AM posted to microsoft.public.access
Access beginner
external usenet poster
 
Posts: 2
Default Access report management

i have a form on an access FE (access 2000) i use one combo box to determine
which report is loaded on a click event, at the moment they open in
acViewPreview,

but i wish to be able to have a combo box with acViewNormal and
acViewPreview as the options and then have the vba grab the view method
however i get type mismatch error any advice? or help here is my code

dim ReportName as Variant
dim Method as Variant
ReportName = me.cboreport
Method = me.cboMethod

doCmd.OpenReport ReportName, Method



  #3  
Old December 12th, 2008, 12:37 AM posted to microsoft.public.access
Access beginner
external usenet poster
 
Posts: 19
Default Access report management

The people that are using this system are not to clever, hence why all the
reports are in a combo box, the last version of the program had a button for
each report and it frustrated them,

they asked if this could be worked into this version



"Steve" wrote:

Why not leave your report open in acViewPreview and have a custom menu with
the options to print or close that opens with the report.

Steve


"Access Beginner" Access wrote in
message ...
i have a form on an access FE (access 2000) i use one combo box to
determine
which report is loaded on a click event, at the moment they open in
acViewPreview,

but i wish to be able to have a combo box with acViewNormal and
acViewPreview as the options and then have the vba grab the view method
however i get type mismatch error any advice? or help here is my code

dim ReportName as Variant
dim Method as Variant
ReportName = me.cboreport
Method = me.cboMethod

doCmd.OpenReport ReportName, Method






  #5  
Old December 12th, 2008, 04:01 PM posted to microsoft.public.access
Steve[_57_]
external usenet poster
 
Posts: 598
Default Access report management

I'm not suggesting doing away with the combobox. I just suggested that when
each report is opened (when it is selected in the combobox) that a custom
menu with the option to Print or Close automatically opens with each report.
This can be done with one custom menu that all reports automatically open.

Steve


"Access Beginner" wrote in
message ...
The people that are using this system are not to clever, hence why all the
reports are in a combo box, the last version of the program had a button
for
each report and it frustrated them,

they asked if this could be worked into this version



"Steve" wrote:

Why not leave your report open in acViewPreview and have a custom menu
with
the options to print or close that opens with the report.

Steve


"Access Beginner" Access wrote in
message ...
i have a form on an access FE (access 2000) i use one combo box to
determine
which report is loaded on a click event, at the moment they open in
acViewPreview,

but i wish to be able to have a combo box with acViewNormal and
acViewPreview as the options and then have the vba grab the view method
however i get type mismatch error any advice? or help here is my code

dim ReportName as Variant
dim Method as Variant
ReportName = me.cboreport
Method = me.cboMethod

doCmd.OpenReport ReportName, Method








 




Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Forum Jump


All times are GMT +1. The time now is 08:26 AM.


Powered by vBulletin® Version 3.6.4
Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Copyright ©2004-2024 OfficeFrustration.
The comments are property of their posters.