Active TopicsActive Topics  Display List of Forum MembersMemberlist  Search The ForumSearch  HelpHelp
  RegisterRegister  LoginLogin
Please consider donating $1 per sample downloaded, find out why here. If downloading multiple samples, please donate once for all of them.
Amazon Honor System  Click Here
to Pay Learn More
Access 97, 2000, 2002 (XP) (Forum Locked Forum Locked)
 RAL Forums : Access 97, 2000, 2002 (XP)
Subject Topic: Currently If statement verses new If stat Post ReplyPost New Topic
Author
Message << Prev Topic | Next Topic >>
myhnews
Newbie
Newbie


Joined: 30 August 2004
Location: United States
Posts: 3
Posted: 09 September 2004 at 11:47pm | IP Logged Quote myhnews

Private Sub GroupHeader2_Format(Cancel As Integer, FormatCount As Integer)
If Me.Parent!CheckBox2 = True Then
Me.GroupHeader2.Visible = True
Else
Me.GroupHeader2.Visible = False
End If
End Sub

Is there a way to run a similar code from the main report, rather then the sub report?

It should look something like this. (this exact code don’t work – why?)
Private Sub Detail_Format(Cancel As Integer, FormatCount As Integer)
If Me. CheckBox2 = True Then
Me!subProperty.Form! GroupHeader2.Visible = True
Else
Me!subProperty.Form! GroupHeader2.Visible = False
End If
End Sub


Thanks
Back to Top View myhnews's Profile Search for other posts by myhnews Send Private Message Add to Buddy List
 
wizcow
Newbie
Newbie


Joined: 03 May 2003
Location: Canada
Posts: 38
Posted: 12 September 2004 at 12:29am | IP Logged Quote wizcow

I'm not really seeing what you are doing here, but in your code I see a problem with this line...

first example
If Me.Parent!CheckBox2 = True Then

second example
If Me.CheckBox2 = True Then

Tom
Back to Top View wizcow's Profile Search for other posts by wizcow Visit wizcow's Homepage Send Private Message Add to Buddy List
 

Sorry, you can NOT post a reply.
This forum has been locked by a forum administrator.

  Post ReplyPost New Topic
Printable version Printable version

Forum Jump
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot delete your posts in this forum
You cannot edit your posts in this forum
You cannot create polls in this forum
You cannot vote in polls in this forum

Powered by Web Wiz Forums version 7.01
Copyright ©2001-2003 Web Wiz Guide