Sign Up |  Live StatsLive Stats    Articles 37,470| Comments 178,712| Members 19,496, Newest harshith| Online 469
Home Contact
 (Forgotten?): 
    10 years of Excellence
    For best SPN experience, use Firefox Internet Browser!


                                                                   Your Banner Here!    




Click Here to Register/Sign Up Daily Hukamnama Member Blogs Downloads Website Navigation Help Fonts Tags
Sikh Philosophy Network » Sikh Philosophy Network » Current News » Information Technology » Hide Fields on Reports based upon criteria

Hide Fields on Reports based upon criteria

Our Donation Goal : Why Donate? : Donate Today! : Donate Anonymously (ਗੁਪਤ) : Our Family of Supporters
Goal this month: 500 USD, Received: 0 USD (0%)
Please Donate...
     
Related Topics...
Thread Thread Starter Forum Replies Last Post
Need the VBA to hide rows in excel where a specific criteria is me KBV Information Technology 1 28-Jul-2006 08:29 AM
Report based on various criteria Dendalee Information Technology 1 28-Jul-2006 08:12 AM
Hide window reports problem kuben@angelus.co.za Information Technology 1 03-Nov-2005 11:34 AM
Hide database window reports problem kuben@angelus.co.za Information Technology 0 02-Nov-2005 11:47 AM
Hide database window reports problem kuben@angelus.co.za Information Technology 0 01-Nov-2005 13:40 PM


Tags
hide, fields, reports, based, upon, criteria
Reply Post New Topic In This Forum Stay Connected to Sikhism, Click Here to Register Now!
  #1 (permalink)  
Old 28-Oct-2005, 18:00 PM
bondtk's Avatar bondtk
Guest
 
Posts: n/a
   
   
Hide Fields on Reports based upon criteria

  Donate Today!   Email to Friend  Tell a Friend   Show Printable Version  Print   Contact sikhphilosophy.net Administraion for any Suggestions, Ideas, Feedback.  Feedback  

Register to Remove Advertisements
This should be a very simple thing to do, but I'm running into the all famous
Reference:: Sikh Philosophy Network http://www.sikhphilosophy.net/information-technology/6008-hide-fields-reports-based-upon-criteria.html
2427 error code. I want to hide a field if a checkbox is checked. So here
is my present code.

Sub
If [Proposal?]=-1 then Me.adminstamp.visible=false
Reference:: Sikh Philosophy Network http://www.sikhphilosophy.net/showthread.php?t=6008
End Sub

I put the [Proposal?] checkbox field on the report just in case that was the
issue but still get the same error 2427 "You entered an expression that has
no value"

This type of code was easy to put on a form, but the report doesn't like it.
Help!


*







Do you agree or disagree with the writer above? Why not share your immediate thoughts with us! Login Now! or Sign Up Today! to share your views... Gurfateh!
Reply With Quote
Sponsored Links
  #2 (permalink)  
Old 28-Oct-2005, 18:00 PM
Ofer's Avatar Ofer
Guest
 
Posts: n/a
   
   
RE: Hide Fields on Reports based upon criteria

Did you put this code on the On format event of the section where both fields
Reference:: Sikh Philosophy Network http://www.sikhphilosophy.net/showthread.php?t=6008
are located in?
--
If I answered your question, please mark it as an answer. That way, it will
stay saved for a longer time, so other can benifit from it.

Good luck



"bondtk" wrote:

> This should be a very simple thing to do, but I'm running into the all famous
> 2427 error code. I want to hide a field if a checkbox is checked. So here
Reference:: Sikh Philosophy Network http://www.sikhphilosophy.net/showthread.php?t=6008
> is my present code.
>
> Sub
> If [Proposal?]=-1 then Me.adminstamp.visible=false
> End Sub
>
> I put the [Proposal?] checkbox field on the report just in case that was the
> issue but still get the same error 2427 "You entered an expression that has
> no value"
>
> This type of code was easy to put on a form, but the report doesn't like it.
> Help!
>

Reply With Quote
  #3 (permalink)  
Old 28-Oct-2005, 18:00 PM
bondtk's Avatar bondtk
Guest
 
Posts: n/a
   
   
RE: Hide Fields on Reports based upon criteria

Well, we're getting a little closer. Now I don't get the error. BUT now the
Reference:: Sikh Philosophy Network http://www.sikhphilosophy.net/showthread.php?t=6008
field is not visible regardless of the value of [Proposal?] Here's my exact
code.

Private Sub Detail_Format(Cancel As Integer, FormatCount As Integer)
If [Proposal?] = -1 Then Me.Admin_Stamp.Visible = False
End Sub

"Ofer" wrote:

> Did you put this code on the On format event of the section where both fields
> are located in?
> --
> If I answered your question, please mark it as an answer. That way, it will
> stay saved for a longer time, so other can benifit from it.
Reference:: Sikh Philosophy Network http://www.sikhphilosophy.net/showthread.php?t=6008
>
> Good luck
>
>
>
> "bondtk" wrote:
>
> > This should be a very simple thing to do, but I'm running into the all famous
> > 2427 error code. I want to hide a field if a checkbox is checked. So here
> > is my present code.
> >
> > Sub
> > If [Proposal?]=-1 then Me.adminstamp.visible=false
> > End Sub
> >
> > I put the [Proposal?] checkbox field on the report just in case that was the
> > issue but still get the same error 2427 "You entered an expression that has
> > no value"
> >
> > This type of code was easy to put on a form, but the report doesn't like it.
> > Help!
> >

Reply With Quote
  #4 (permalink)  
Old 28-Oct-2005, 18:00 PM
Ofer's Avatar Ofer
Guest
 
Posts: n/a
   
   
RE: Hide Fields on Reports based upon criteria

It becuase you never set it back to true, try this
Private Sub Detail_Format(Cancel As Integer, FormatCount As Integer)
If [Proposal?] = -1 Then
Me.Admin_Stamp.Visible = False
else
Me.Admin_Stamp.Visible = True
End if
End Sub
=====================================
Or
Private Sub Detail_Format(Cancel As Integer, FormatCount As Integer)
Me.Admin_Stamp.Visible = Not ([Proposal?] = -1)
End Sub


--
If I answered your question, please mark it as an answer. That way, it will
stay saved for a longer time, so other can benifit from it.

Good luck



"bondtk" wrote:

> Well, we're getting a little closer. Now I don't get the error. BUT now the
> field is not visible regardless of the value of [Proposal?] Here's my exact
Reference:: Sikh Philosophy Network http://www.sikhphilosophy.net/showthread.php?t=6008
> code.
>
> Private Sub Detail_Format(Cancel As Integer, FormatCount As Integer)
> If [Proposal?] = -1 Then Me.Admin_Stamp.Visible = False
> End Sub
>
> "Ofer" wrote:
>
> > Did you put this code on the On format event of the section where both fields
> > are located in?
> > --
> > If I answered your question, please mark it as an answer. That way, it will
> > stay saved for a longer time, so other can benifit from it.
> >
> > Good luck
> >
> >
> >
> > "bondtk" wrote:
> >
> > > This should be a very simple thing to do, but I'm running into the all famous
> > > 2427 error code. I want to hide a field if a checkbox is checked. So here
> > > is my present code.
> > >
> > > Sub
> > > If [Proposal?]=-1 then Me.adminstamp.visible=false
> > > End Sub
> > >
> > > I put the [Proposal?] checkbox field on the report just in case that was the
> > > issue but still get the same error 2427 "You entered an expression that has
> > > no value"
> > >
> > > This type of code was easy to put on a form, but the report doesn't like it.
Reference:: Sikh Philosophy Network http://www.sikhphilosophy.net/showthread.php?t=6008
> > > Help!
> > >

Reply With Quote
  #5 (permalink)  
Old 28-Oct-2005, 18:00 PM
bondtk's Avatar bondtk
Guest
 
Posts: n/a
   
   
RE: Hide Fields on Reports based upon criteria

  Donate Today!  
You're a genious!!! Thank you very much. It works. Just can't leave out
both sides of the "else".

"Ofer" wrote:

> It becuase you never set it back to true, try this
> Private Sub Detail_Format(Cancel As Integer, FormatCount As Integer)
> If [Proposal?] = -1 Then
> Me.Admin_Stamp.Visible = False
> else
> Me.Admin_Stamp.Visible = True
> End if
> End Sub
> =====================================
> Or
> Private Sub Detail_Format(Cancel As Integer, FormatCount As Integer)
> Me.Admin_Stamp.Visible = Not ([Proposal?] = -1)
> End Sub
>
>
> --
> If I answered your question, please mark it as an answer. That way, it will
> stay saved for a longer time, so other can benifit from it.
>
> Good luck
>
>
>
> "bondtk" wrote:
>
> > Well, we're getting a little closer. Now I don't get the error. BUT now the
> > field is not visible regardless of the value of [Proposal?] Here's my exact
> > code.
> >
> > Private Sub Detail_Format(Cancel As Integer, FormatCount As Integer)
> > If [Proposal?] = -1 Then Me.Admin_Stamp.Visible = False
> > End Sub
> >
> > "Ofer" wrote:
> >
> > > Did you put this code on the On format event of the section where both fields
> > > are located in?
> > > --
> > > If I answered your question, please mark it as an answer. That way, it will
> > > stay saved for a longer time, so other can benifit from it.
> > >
> > > Good luck
> > >
> > >
> > >
> > > "bondtk" wrote:
> > >
> > > > This should be a very simple thing to do, but I'm running into the all famous
Reference:: Sikh Philosophy Network http://www.sikhphilosophy.net/showthread.php?t=6008
> > > > 2427 error code. I want to hide a field if a checkbox is checked. So here
Reference:: Sikh Philosophy Network http://www.sikhphilosophy.net/showthread.php?t=6008
> > > > is my present code.
> > > >
> > > > Sub
> > > > If [Proposal?]=-1 then Me.adminstamp.visible=false
> > > > End Sub
> > > >
> > > > I put the [Proposal?] checkbox field on the report just in case that was the
> > > > issue but still get the same error 2427 "You entered an expression that has
> > > > no value"
> > > >
> > > > This type of code was easy to put on a form, but the report doesn't like it.
> > > > Help!
> > > >

Reply With Quote
   Click Here to Donate Now!

Support Us!
Become a Promoter!
Gurfateh ji, you can become a SPN Promoter by Donating as little as $10 each month. With limited resources & high operational costs, your donations make it possible for us to deliver a quality website and spread the teachings of the Sri Guru Granth Sahib Ji, to serve & uplift humanity. Every contribution counts. Donate Generously. Gurfateh!
ReplyPost New Topic In This Forum Stay Connected to Sikhism, Click Here to Register Now!

Bookmarks


(View-All Members who have read this thread : 0
There are no names to display.

Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Tools Search
Search:

Advanced Search
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

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

» Active Discussions
Can Sikhs worship...
Today 12:52 PM
39 Replies, 394 Views
Would an Atheist Pray in...
Today 12:09 PM
62 Replies, 5,312 Views
Nice Punjabi Songs with...
Today 08:50 AM
19 Replies, 530 Views
Sikh Philosophy Network...
Today 04:13 AM
18 Replies, 852 Views
Rozana Reports (ਪੰਜਾਬੀ...
Today 03:39 AM
410 Replies, 9,468 Views
Thought of the Moment!
Today 00:06 AM
116 Replies, 6,137 Views
English Sri Guru Granth Sahib Ji Translations
Yesterday 23:30 PM
6 Replies, 109 Views
Sikh Spokesman (ਪੰਜਾਬੀ...
Yesterday 21:25 PM
256 Replies, 6,079 Views
Difference in Bowing...
By Kamala
Yesterday 15:08 PM
11 Replies, 279 Views
What Really Happened on...
Yesterday 12:46 PM
13 Replies, 250 Views
Free Online Gurbani...
Yesterday 03:56 AM
13 Replies, 4,345 Views
English Sri Guru Granth...
Yesterday 03:51 AM
5 Replies, 180 Views
Edward Snowden: the...
Yesterday 03:34 AM
3 Replies, 195 Views
What Is Difference...
18-Jun-2013 09:18 AM
6 Replies, 184 Views
First There is Water by...
By Ishna
18-Jun-2013 05:03 AM
3 Replies, 194 Views
» Books You Should Read...
Powered by vBadvanced CMPS v3.2.3
All times are GMT +6.5. The time now is 13:55 PM.
Powered by vBulletin® Version 3.8.7
Copyright ©2000 - 2013, vBulletin Solutions, Inc.
Search Engine Optimization by vBSEO 3.6.0 PL2 Copyright © 2004-12, All Rights Reserved. Sikh Philosophy Network


Page generated in 0.74112 seconds with 32 queries