WUGNET, the Windows User Group Network
Your Complete Resource Center for "The Best" in Shareware, Computing Tips and Support, Windows Industry News... and much more!
Home Forums Shareware Windows Tips Hot Offers FREE Newsletters Arcade Contact Us About Partners
Search WUGNET: RSS Feeds RSS Feeds Advertise with WUGNET    |    Shareware eBooks
HomeHome FAQFAQ      ProfileProfile    Private MessagesPrivate Messages   Log inLog in

Access crashes when opening a Report

 
   Home -> Office other -> Reports RSS
Next:  Table form problems  
Author Message
eschloss

External


Since: Aug 31, 2007
Posts: 8



(Msg. 1) Posted: Tue Nov 25, 2008 11:36 am
Post subject: Access crashes when opening a Report
Archived from groups: microsoft>public>access>reports (more info?)

Access 2003

I have a report which contains only a subform(Child21) in its Detail
section. Access crashes after I place the following line in the report's On
Open event:

[Child21].Requery

There are no Child/Master links between the report and subform. The subform
is actually a barchart form I made which uses mulitple recordsets to gather
information.

I have tried the following:
Renaming the subform.
Turning Name Autocorrect off.
Creating a new database with Name Autocorrect off then importing all objects.

Please help. What am I missing?
Back to top
Login to vote
Duane Hookom

External


Since: Feb 07, 2005
Posts: 2414



(Msg. 2) Posted: Tue Nov 25, 2008 12:23 pm
Post subject: RE: Access crashes when opening a Report [Login to view extended thread Info.]
Archived from groups: per prev. post (more info?)

Try moving the code to the On Format event of the Detail section.
--
Duane Hookom
Microsoft Access MVP


"eschloss" wrote:

> Access 2003
>
> I have a report which contains only a subform(Child21) in its Detail
> section. Access crashes after I place the following line in the report's On
> Open event:
>
> [Child21].Requery
>
> There are no Child/Master links between the report and subform. The subform
> is actually a barchart form I made which uses mulitple recordsets to gather
> information.
>
> I have tried the following:
> Renaming the subform.
> Turning Name Autocorrect off.
> Creating a new database with Name Autocorrect off then importing all objects.
>
> Please help. What am I missing?
Back to top
Login to vote
eschloss

External


Since: Aug 31, 2007
Posts: 8



(Msg. 3) Posted: Tue Nov 25, 2008 3:51 pm
Post subject: RE: Access crashes when opening a Report [Login to view extended thread Info.]
Archived from groups: per prev. post (more info?)

The report now displays, but the subform does not return any information.

Based on reading other explanations for this problem, I confirmed that the
forms(test) Data Entry property is "No". Also, the only connection the
subform(Child21) has to its form(test) is the "Source Object" field which is
"Form.test". I gather I need something else in addition to this.

Also, there is no Record Source specified for the Report containing this
subform(Child21).

Hopefully this informations clearly points out a rookie mistake I made.
Thanks Duane.

"Duane Hookom" wrote:

> Try moving the code to the On Format event of the Detail section.
> --
> Duane Hookom
> Microsoft Access MVP
>
>
> "eschloss" wrote:
>
> > Access 2003
> >
> > I have a report which contains only a subform(Child21) in its Detail
> > section. Access crashes after I place the following line in the report's On
> > Open event:
> >
> > [Child21].Requery
> >
> > There are no Child/Master links between the report and subform. The subform
> > is actually a barchart form I made which uses mulitple recordsets to gather
> > information.
> >
> > I have tried the following:
> > Renaming the subform.
> > Turning Name Autocorrect off.
> > Creating a new database with Name Autocorrect off then importing all objects.
> >
> > Please help. What am I missing?
Back to top
Login to vote
Jeff Boyce

External


Since: Nov 04, 2004
Posts: 2279



(Msg. 4) Posted: Tue Nov 25, 2008 4:46 pm
Post subject: Re: Access crashes when opening a Report [Login to view extended thread Info.]
Archived from groups: per prev. post (more info?)

I don't know if this could be a factor, but your description seems to
indicate that you are trying to embed a form (subform) in a report. Why is
that? Why not embed a report (subreport) in a report?

Regards

Jeff Boyce
Microsoft Office/Access MVP

"eschloss" <eschloss.DeleteThis@discussions.microsoft.com> wrote in message
news:FE694D53-3807-482B-8259-9A810D6AF20A@microsoft.com...
> The report now displays, but the subform does not return any information.
>
> Based on reading other explanations for this problem, I confirmed that the
> forms(test) Data Entry property is "No". Also, the only connection the
> subform(Child21) has to its form(test) is the "Source Object" field which
> is
> "Form.test". I gather I need something else in addition to this.
>
> Also, there is no Record Source specified for the Report containing this
> subform(Child21).
>
> Hopefully this informations clearly points out a rookie mistake I made.
> Thanks Duane.
>
> "Duane Hookom" wrote:
>
>> Try moving the code to the On Format event of the Detail section.
>> --
>> Duane Hookom
>> Microsoft Access MVP
>>
>>
>> "eschloss" wrote:
>>
>> > Access 2003
>> >
>> > I have a report which contains only a subform(Child21) in its Detail
>> > section. Access crashes after I place the following line in the
>> > report's On
>> > Open event:
>> >
>> > [Child21].Requery
>> >
>> > There are no Child/Master links between the report and subform. The
>> > subform
>> > is actually a barchart form I made which uses mulitple recordsets to
>> > gather
>> > information.
>> >
>> > I have tried the following:
>> > Renaming the subform.
>> > Turning Name Autocorrect off.
>> > Creating a new database with Name Autocorrect off then importing all
>> > objects.
>> >
>> > Please help. What am I missing?
Back to top
Login to vote
eschloss

External


Since: Aug 31, 2007
Posts: 8



(Msg. 5) Posted: Tue Nov 25, 2008 6:13 pm
Post subject: Re: Access crashes when opening a Report [Login to view extended thread Info.]
Archived from groups: per prev. post (more info?)

Yes Jeff, I am trying to embed a form into a report. Just seemed logical to
me at the time. Is embedding a report into another report easier to do? If
so, I have no objection going that route. It would just bother me to leave
my current situation unresolved.

I'll give it a try regardless and get back to you guys.

"Jeff Boyce" wrote:

> I don't know if this could be a factor, but your description seems to
> indicate that you are trying to embed a form (subform) in a report. Why is
> that? Why not embed a report (subreport) in a report?
>
> Regards
>
> Jeff Boyce
> Microsoft Office/Access MVP
>
> "eschloss" <eschloss.TakeThisOut@discussions.microsoft.com> wrote in message
> news:FE694D53-3807-482B-8259-9A810D6AF20A@microsoft.com...
> > The report now displays, but the subform does not return any information.
> >
> > Based on reading other explanations for this problem, I confirmed that the
> > forms(test) Data Entry property is "No". Also, the only connection the
> > subform(Child21) has to its form(test) is the "Source Object" field which
> > is
> > "Form.test". I gather I need something else in addition to this.
> >
> > Also, there is no Record Source specified for the Report containing this
> > subform(Child21).
> >
> > Hopefully this informations clearly points out a rookie mistake I made.
> > Thanks Duane.
> >
> > "Duane Hookom" wrote:
> >
> >> Try moving the code to the On Format event of the Detail section.
> >> --
> >> Duane Hookom
> >> Microsoft Access MVP
> >>
> >>
> >> "eschloss" wrote:
> >>
> >> > Access 2003
> >> >
> >> > I have a report which contains only a subform(Child21) in its Detail
> >> > section. Access crashes after I place the following line in the
> >> > report's On
> >> > Open event:
> >> >
> >> > [Child21].Requery
> >> >
> >> > There are no Child/Master links between the report and subform. The
> >> > subform
> >> > is actually a barchart form I made which uses mulitple recordsets to
> >> > gather
> >> > information.
> >> >
> >> > I have tried the following:
> >> > Renaming the subform.
> >> > Turning Name Autocorrect off.
> >> > Creating a new database with Name Autocorrect off then importing all
> >> > objects.
> >> >
> >> > Please help. What am I missing?
>
>
>
Back to top
Login to vote
eschloss

External


Since: Aug 31, 2007
Posts: 8



(Msg. 6) Posted: Wed Nov 26, 2008 8:44 am
Post subject: Re: Access crashes when opening a Report [Login to view extended thread Info.]
Archived from groups: per prev. post (more info?)

OK, changing my form into a report and embedding that into another report
worked mostly. However, it is obvious that the subreport information is
displayed on top of the subreport control. I say this because I can see the
control border(easy to remove) and the name of the subreport(Child321)
underneath the subreport information.

1. How can I remove the name? When I set Visible = No, for the subreport,
the subreport doesn't run.

2. Also, in my form code, I had the following lines:

Me.InsideWidth = 6.5 * 1440
Me.InsideHeight = 8.25 * 1440
Me.Width = 6.5 * 1440
Me.Detail.Height = 8.25 * 1440

What are their equivalents for a report? Does Me.Section(0).Height register
the same as Me.Detail.Height to a report?

3. Less importantly, I am using Stephen Lebans vertical justification
module. When the code ran as a form, all text was vertically centered.
However, running that same code as a report, all text slightly favors the sub
center position. Any idea why?

Thanks guys.

"eschloss" wrote:

> Yes Jeff, I am trying to embed a form into a report. Just seemed logical to
> me at the time. Is embedding a report into another report easier to do? If
> so, I have no objection going that route. It would just bother me to leave
> my current situation unresolved.
>
> I'll give it a try regardless and get back to you guys.
>
> "Jeff Boyce" wrote:
>
> > I don't know if this could be a factor, but your description seems to
> > indicate that you are trying to embed a form (subform) in a report. Why is
> > that? Why not embed a report (subreport) in a report?
> >
> > Regards
> >
> > Jeff Boyce
> > Microsoft Office/Access MVP
> >
> > "eschloss" <eschloss DeleteThis @discussions.microsoft.com> wrote in message
> > news:FE694D53-3807-482B-8259-9A810D6AF20A@microsoft.com...
> > > The report now displays, but the subform does not return any information.
> > >
> > > Based on reading other explanations for this problem, I confirmed that the
> > > forms(test) Data Entry property is "No". Also, the only connection the
> > > subform(Child21) has to its form(test) is the "Source Object" field which
> > > is
> > > "Form.test". I gather I need something else in addition to this.
> > >
> > > Also, there is no Record Source specified for the Report containing this
> > > subform(Child21).
> > >
> > > Hopefully this informations clearly points out a rookie mistake I made.
> > > Thanks Duane.
> > >
> > > "Duane Hookom" wrote:
> > >
> > >> Try moving the code to the On Format event of the Detail section.
> > >> --
> > >> Duane Hookom
> > >> Microsoft Access MVP
> > >>
> > >>
> > >> "eschloss" wrote:
> > >>
> > >> > Access 2003
> > >> >
> > >> > I have a report which contains only a subform(Child21) in its Detail
> > >> > section. Access crashes after I place the following line in the
> > >> > report's On
> > >> > Open event:
> > >> >
> > >> > [Child21].Requery
> > >> >
> > >> > There are no Child/Master links between the report and subform. The
> > >> > subform
> > >> > is actually a barchart form I made which uses mulitple recordsets to
> > >> > gather
> > >> > information.
> > >> >
> > >> > I have tried the following:
> > >> > Renaming the subform.
> > >> > Turning Name Autocorrect off.
> > >> > Creating a new database with Name Autocorrect off then importing all
> > >> > objects.
> > >> >
> > >> > Please help. What am I missing?
> >
> >
> >
Back to top
Login to vote
Duane Hookom

External


Since: Feb 07, 2005
Posts: 2414



(Msg. 7) Posted: Wed Nov 26, 2008 9:41 am
Post subject: Re: Access crashes when opening a Report [Login to view extended thread Info.]
Archived from groups: per prev. post (more info?)

1. The "name" is a label that you can select and delete
2. Just set the properties in design view. You didn't provide any indication
of why you think you need code to do this. When checking heights of "Can
Grow" controls in a report, you must use code in the On Print event. Once the
On Print event has started, it's too late to set any control properties.
3. Happy Thanksgiving Mr. Boyce. I'm thankful you are going to answer this Wink

--
Duane Hookom
Microsoft Access MVP


"eschloss" wrote:

> OK, changing my form into a report and embedding that into another report
> worked mostly. However, it is obvious that the subreport information is
> displayed on top of the subreport control. I say this because I can see the
> control border(easy to remove) and the name of the subreport(Child321)
> underneath the subreport information.
>
> 1. How can I remove the name? When I set Visible = No, for the subreport,
> the subreport doesn't run.
>
> 2. Also, in my form code, I had the following lines:
>
> Me.InsideWidth = 6.5 * 1440
> Me.InsideHeight = 8.25 * 1440
> Me.Width = 6.5 * 1440
> Me.Detail.Height = 8.25 * 1440
>
> What are their equivalents for a report? Does Me.Section(0).Height register
> the same as Me.Detail.Height to a report?
>
> 3. Less importantly, I am using Stephen Lebans vertical justification
> module. When the code ran as a form, all text was vertically centered.
> However, running that same code as a report, all text slightly favors the sub
> center position. Any idea why?
>
> Thanks guys.
>
> "eschloss" wrote:
>
> > Yes Jeff, I am trying to embed a form into a report. Just seemed logical to
> > me at the time. Is embedding a report into another report easier to do? If
> > so, I have no objection going that route. It would just bother me to leave
> > my current situation unresolved.
> >
> > I'll give it a try regardless and get back to you guys.
> >
> > "Jeff Boyce" wrote:
> >
> > > I don't know if this could be a factor, but your description seems to
> > > indicate that you are trying to embed a form (subform) in a report. Why is
> > > that? Why not embed a report (subreport) in a report?
> > >
> > > Regards
> > >
> > > Jeff Boyce
> > > Microsoft Office/Access MVP
> > >
> > > "eschloss" <eschloss DeleteThis @discussions.microsoft.com> wrote in message
> > > news:FE694D53-3807-482B-8259-9A810D6AF20A@microsoft.com...
> > > > The report now displays, but the subform does not return any information.
> > > >
> > > > Based on reading other explanations for this problem, I confirmed that the
> > > > forms(test) Data Entry property is "No". Also, the only connection the
> > > > subform(Child21) has to its form(test) is the "Source Object" field which
> > > > is
> > > > "Form.test". I gather I need something else in addition to this.
> > > >
> > > > Also, there is no Record Source specified for the Report containing this
> > > > subform(Child21).
> > > >
> > > > Hopefully this informations clearly points out a rookie mistake I made.
> > > > Thanks Duane.
> > > >
> > > > "Duane Hookom" wrote:
> > > >
> > > >> Try moving the code to the On Format event of the Detail section.
> > > >> --
> > > >> Duane Hookom
> > > >> Microsoft Access MVP
> > > >>
> > > >>
> > > >> "eschloss" wrote:
> > > >>
> > > >> > Access 2003
> > > >> >
> > > >> > I have a report which contains only a subform(Child21) in its Detail
> > > >> > section. Access crashes after I place the following line in the
> > > >> > report's On
> > > >> > Open event:
> > > >> >
> > > >> > [Child21].Requery
> > > >> >
> > > >> > There are no Child/Master links between the report and subform. The
> > > >> > subform
> > > >> > is actually a barchart form I made which uses mulitple recordsets to
> > > >> > gather
> > > >> > information.
> > > >> >
> > > >> > I have tried the following:
> > > >> > Renaming the subform.
> > > >> > Turning Name Autocorrect off.
> > > >> > Creating a new database with Name Autocorrect off then importing all
> > > >> > objects.
> > > >> >
> > > >> > Please help. What am I missing?
> > >
> > >
> > >
Back to top
Login to vote
Display posts from previous:   
       Home -> Office other -> Reports All times are: Eastern Time (US & Canada) (change)
Page 1 of 1

 
You can post new topics in this forum
You can reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
Categories:
 Windows XP
 Windows Vista
 Windows Other
 Office
  Office Other
 Security
  • Home |
  • Shareware |
  • Windows Tips |
  • Hot Offers |
  • FREE Newsletters |
  • Arcade |
  • Forums |
  • eBooks |
  • About WUGNET |
  • Partners |
  • Contact

  • WUGNET Privacy Policy |
  • Link to WUGNET |
  • IT Support