473,473 Members | 1,842 Online
Bytes | Software Development & Data Engineering Community
Create Post

Home Posts Topics Members FAQ

Hiding a Report Footer on Report Open

94 New Member
Upon opening a Report i have created, i need to hide the report footer when 2 text boxes contain the same numeric value.

I am hoping something will be possible using the Height property of the page footer, though i have my reservations about whether this will work when the footer contains data.

The only other way i can think of would be to make all fields contained in the footer Invisible, though this will

Can anyone supply me some VB they think might help?
Does anyone have any ideas?

Thanks!
Jan 18 '08 #1
3 5988
sierra7
446 Recognized Expert Contributor
In the 'On Format' event of the Footer section of your report write the code shown in line 3;-
Expand|Select|Wrap|Line Numbers
  1. Private Sub PageFooterSection_Format(Cancel As Integer, FormatCount As Integer)
  2.  
  3. If Me!Text2 = Me!Text0 Then Cancel = True
  4.  
  5. End Sub
where Text0 and Text2 are the names of the two text boxes being evaluated.

S7
Jan 18 '08 #2
Minion
108 Recognized Expert New Member
I'm taking it you're talking about two of the text boxes on the report. If they are different boxes the code will be different, but for now put the following code in the form's on open event:
Expand|Select|Wrap|Line Numbers
  1. with me
  2.    if .Text1 = .Text2 then
  3.       .PageFooterSection.Visible = False
  4.    end if
  5. end with
  6.  
This should hide the footer of the report if the two boxes are equal.

Hope this helps.

- Minion -

Upon opening a Report i have created, i need to hide the report footer when 2 text boxes contain the same numeric value.

I am hoping something will be possible using the Height property of the page footer, though i have my reservations about whether this will work when the footer contains data.

The only other way i can think of would be to make all fields contained in the footer Invisible, though this will

Can anyone supply me some VB they think might help?
Does anyone have any ideas?

Thanks!
Jan 18 '08 #3
Lewe22
94 New Member
Thanks Sierra7. Your code worked great!
Jan 23 '08 #4

Sign in to post your reply or Sign up for a free account.

Similar topics

1
by: Shiz | last post by:
I currently have a Form with Option buttons (to give you the option of sorting by name, or by Field, etc), these are referenced in a module which then formats the report contingent on the option...
1
by: Nathan Bloomfield | last post by:
Does anyone know if there is any documentation which relates to Access2k + ? or can anyone help adjust the code? I am having trouble converting the DAO references. TITLE :INF: How to...
4
by: Trevor Best | last post by:
I have a report that's fairly simple, page headers and footers, detail has a subreport in (can vary in length). The customer wanted a signature block for them, their client and 3rd party. This was...
13
by: Greg | last post by:
Most suggestions on this topic recommend to use a page footer and make it visible only on the last page. My problem is that the footer is half of the height of a page which means the detail would...
3
by: creative1 | last post by:
Here is how you create a complex data report that involves parent and child commands and you can update information at runtime. Its pretty straight forward to work with simple queries; however,...
3
by: Fred's | last post by:
Hi Folks, I have a report which the record source is a query name: Query3 and in my Query3 I have this parameter "between And ". Therefore, when I open my report, it will ask for a Start Date...
12
D Giles
by: D Giles | last post by:
Access 2003: A subreport control (sum total calculated textbox located in the subreport report footer) does not show total of all records when referenced as a total in the main report footer - only...
12
by: Studiotyphoon | last post by:
Hi, I have report which I need to print 3 times, but would like to have the following headings Customer Copy - Print 1 Accounts Copy - Print 2 File Copy -Print 3 I created a macro to...
14
ollyb303
by: ollyb303 | last post by:
Hi, I am trying to create a dynamic crosstab report which will display number of calls handled (I work for a call centre) per day grouped by supervisor. I have one crosstab query (Query1) which...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
1
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new...
0
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
0
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated ...
0
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.