PC Review


Reply
Thread Tools Rate Thread

Can't See an Instanced report. Really need Help

 
 
Edgar
Guest
Posts: n/a
 
      27th Sep 2008
Hi Everyone,
I got this problem:

Public MyReport as Report
set MyReport = Report_Volume

and Now,
DoCmd.OpenReport MyReport, acViewPreview, Criteria
But It doesn't show anything.
I added -- MyReport.Visible = true -- and then it shows the report
Without
any Filtering. It Shows the report in he original State Exactly as
Report_Volume looks like.
I Think MyReport.Visible = true is giving me a trouble opening the
source report (Report_Volume). What I need is to know Why MyReport doesn't
show up with the Docmd order.

Please, help is required for half a Day of no resolutions

Thanks a lot for your considerations.


--
Edgar Rey
 
Reply With Quote
 
 
 
 
Edgar
Guest
Posts: n/a
 
      27th Sep 2008
I found the problem
DoCmd.OpenReport MyReport.Name, acViewPreview, Criteria
that's the rigth string.

I'm sorry for the space
--
Edgar Rey


"Edgar" wrote:

> Hi Everyone,
> I got this problem:
>
> Public MyReport as Report
> set MyReport = Report_Volume
>
> and Now,
> DoCmd.OpenReport MyReport, acViewPreview, Criteria
> But It doesn't show anything.
> I added -- MyReport.Visible = true -- and then it shows the report
> Without
> any Filtering. It Shows the report in he original State Exactly as
> Report_Volume looks like.
> I Think MyReport.Visible = true is giving me a trouble opening the
> source report (Report_Volume). What I need is to know Why MyReport doesn't
> show up with the Docmd order.
>
> Please, help is required for half a Day of no resolutions
>
> Thanks a lot for your considerations.
>
>
> --
> Edgar Rey

 
Reply With Quote
 
Steve Sanford
Guest
Posts: n/a
 
      29th Sep 2008
Hi Edgar,

All you really need is one line:


DoCmd.OpenReport "Report_Volume", acViewPreview, Criteria

or

Dim strReportName as String
strReportName = "Report_Volume"
DoCmd.OpenReport strReportName, acViewPreview, Criteria


The way you are doing it works, but it takes more lines and is a round about
way.

HTH
--
Steve S
--------------------------------
"Veni, Vidi, Velcro"
(I came; I saw; I stuck around.)


"Edgar" wrote:

> I found the problem
> DoCmd.OpenReport MyReport.Name, acViewPreview, Criteria
> that's the rigth string.
>
> I'm sorry for the space
> --
> Edgar Rey
>
>
> "Edgar" wrote:
>
> > Hi Everyone,
> > I got this problem:
> >
> > Public MyReport as Report
> > set MyReport = Report_Volume
> >
> > and Now,
> > DoCmd.OpenReport MyReport, acViewPreview, Criteria
> > But It doesn't show anything.
> > I added -- MyReport.Visible = true -- and then it shows the report
> > Without
> > any Filtering. It Shows the report in he original State Exactly as
> > Report_Volume looks like.
> > I Think MyReport.Visible = true is giving me a trouble opening the
> > source report (Report_Volume). What I need is to know Why MyReport doesn't
> > show up with the Docmd order.
> >
> > Please, help is required for half a Day of no resolutions
> >
> > Thanks a lot for your considerations.
> >
> >
> > --
> > Edgar Rey

 
Reply With Quote
 
 
 
Reply

Thread Tools
Rate This Thread
Rate This Thread:

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

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Can't see an instanced Report. Really need Advice Edgar Microsoft Access 3 27th Sep 2008 09:22 PM
Referencing a multiply instanced form in a query =?Utf-8?B?S2l0Q2F6?= Microsoft Access VBA Modules 2 4th Jun 2007 04:50 AM
Does a Base Class know it's instanced class? =?Utf-8?B?S01TQmVzdA==?= Microsoft Dot NET 1 17th Jan 2006 10:25 PM
Report button linked to exact report record- Open report method? =?Utf-8?B?UmljaA==?= Microsoft Access Forms 1 27th May 2004 06:17 PM
List of Instanced Objects? localhost Microsoft Dot NET Framework Forms 0 16th Apr 2004 02:22 PM


Features
 

Advertising
 

Newsgroups
 


All times are GMT +1. The time now is 10:35 AM.