473,398 Members | 2,120 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,398 software developers and data experts.

Field on report visible or not depending on current date

Is there a way to make a field on a report be visible or not depending
one the current date?

Aug 20 '06 #1
4 4297
On 20 Aug 2006 15:11:56 -0700, "rinmanb70" <em**********@gmail.com>
wrote:

Depends what exactly you mean. Typically you would write your code in
the Report_OnFormat event. Something like:
Me.SomeField.Visible = (Me.SomeField.Value = Date())
or
Me.SomeField.Visible = (Date() = #1/1/2007#)

-Tom.

>Is there a way to make a field on a report be visible or not depending
one the current date?
Aug 20 '06 #2
I'm sorry. I wasn't detailed enough. I want the field to be visible
if the current date is the 1st through the 14th of the month, but if
the current date is the 15th through the end of the month then I'd like
the to field not be visible.

Aug 20 '06 #3
On 20 Aug 2006 16:00:26 -0700, "rinmanb70" <em**********@gmail.com>
wrote:

You can modify my original code to suit those requirements. Remember
that the Day function extracts the day portion of a date, so you can
check if it's <= 14 or not.

-Tom.

>I'm sorry. I wasn't detailed enough. I want the field to be visible
if the current date is the 1st through the 14th of the month, but if
the current date is the 15th through the end of the month then I'd like
the to field not be visible.
Aug 20 '06 #4
Thanks Tom, that's what I did and it works just like I needed.

Aug 26 '06 #5

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

6
by: Greg | last post by:
I am trying to change the value of one field in my query based on the value in another. If Field 1 had the text "ONACCNT" then in Feild 2 I want the date to change to today's date. Any help would...
5
by: Greg Teets | last post by:
I am running an Access report from VB via ADO. The report has a field that shows the date it was run. How can I return the data from this field to VB or have Access post it to a table when the...
5
by: sara | last post by:
I have reports that run from a form where the user can choose a date range, or they run automatically for a week in the "Weekly Reports" option. I created 2 queries and 2 reports - one query...
3
by: smuir | last post by:
I am working with a basic access form for a payroll system and need to modify it such that if an employee worked overtime, then their overtime payrate and hours show up on the report below their...
1
by: roveagh1 | last post by:
Hi I've been using the 2 year old link below to repeat values from previous record field into current corresponding field. It's worked fine for text but the last piece of advice was to use the same...
2
Cintury
by: Cintury | last post by:
Hello, I saw a similar thread on this subject but did not find the answer I was looking for. I have a report that is used to find undistributed balances of food using a table and a subreport. It...
2
by: Simon | last post by:
Dear reader, The presentation of a date field is possible with short date, long date etcetera. But as you know the presentation of a date field in a report is still be depending on the...
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
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
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
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
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
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...
0
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...

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.