473,396 Members | 2,055 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,396 software developers and data experts.

Conditional Formatting Access 2003

Hi All,

I have a couple Date fields in a form that are usually Null but when they are not I would like the field to be highlighted, bold and flash. I usually right click on the field and go to Conditional Formatting, there I know you can set the conditions but I do not know how to make the field flash (hopefully that is the right term). If there is any reference someone can give me that would be great. If this cannot be done please let me know as well. Thank you for any input.
Dec 16 '07 #1
3 3149
puppydogbuddy
1,923 Expert 1GB
Hi All,

I have a couple Date fields in a form that are usually Null but when they are not I would like the field to be highlighted, bold and flash. I usually right click on the field and go to Conditional Formatting, there I know you can set the conditions but I do not know how to make the field flash (hopefully that is the right term). If there is any reference someone can give me that would be great. If this cannot be done please let me know as well. Thank you for any input.
See this link for a step by step:
http://www.databasedev.co.uk/control_flash.html
Dec 16 '07 #2
ADezii
8,834 Expert 8TB
Hi All,

I have a couple Date fields in a form that are usually Null but when they are not I would like the field to be highlighted, bold and flash. I usually right click on the field and go to Conditional Formatting, there I know you can set the conditions but I do not know how to make the field flash (hopefully that is the right term). If there is any reference someone can give me that would be great. If this cannot be done please let me know as well. Thank you for any input.
  1. I'll provide the code for the 1st Date Field which I named txtDateField1, just incorporate similar code for the 2nd Field.
  2. Set the Form's Timer Interval to 1000 (1 second), adjust to your liking.
  3. The following code will poll the Status of txtDateFiel1 every second to see if it is Null or not. If it is Not Null, the Font will be Bold and a pseudo flashing will occur.
  4. Place the following code in the Form's Timer() Event.
    Expand|Select|Wrap|Line Numbers
    1. Private Sub Form_Timer()
    2. Static lngCounter As Long, fld1 As TextBox
    3.  
    4. Set fld1 = Me![txtDateField1]
    5.  
    6. lngCounter = lngCounter + 1
    7.  
    8. If IsNull(fld1) Then
    9.   fld1.FontBold = False
    10.   fld1.BackColor = QBColor(15)
    11. Else
    12.   fld1.FontBold = True
    13.     If lngCounter Mod 2 = 0 Then    'produces the Flash Effect
    14.       fld1.BackColor = QBColor(15)
    15.     Else
    16.       fld1.BackColor = 10092543   'Light Yellow
    17.     End If
    18. End If
    19. End Sub
Dec 16 '07 #3
Thanks puppydogbuddy and ADezii for the reference and the code, I was able to understand it. I got all the fields working, I really appreciate all the help.
Dec 16 '07 #4

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

Similar topics

3
by: Jouke Langhout | last post by:
Hello all! For quite some time now, I've got the following problem: Access won't close properly when a user closes the application. An ACCESS process stays active and that process can only be...
4
by: brAccess | last post by:
I recently installed Access 2003 and immediately noticed problems with applications that work fine in 2000 and XP. I use conditional formatting on continuous forms for a number of reasons. When...
8
by: Dimitri Furman | last post by:
Given: Access 2002/2003 A subform in datasheet or continuous view, placed on a tab page (this last may or may not matter) Conditional formatting applied to some controls on the subform - format...
2
by: Sara | last post by:
The problem: Conditional formatting bold, red when field Value < date() sets the field background to white - always - whether condition is met or not. I want the field unfilled and just red/bold...
5
by: Andrew Chanter | last post by:
Does anyone know a way you can use conditional formatting to create a banded style view as is commonly seen on the internet. (In othe words the first record appears on a gray background, the 2nd...
1
by: GGerard | last post by:
Hello Is there a way to use a variable in the Conditional Formatting of a Textbox? Example : I want the background of a textbox in a continuous form to change color when the value of...
8
by: Typehigh | last post by:
I have many text fields with conditional formatting applied, specifically when the condition is "Field Has Focus". Without any events associated with the fields the conditional formatting works...
1
by: dddsssdddsss | last post by:
A comment and a question To anyone who is using conditional formatting, beware that in Access 2007 the color pallette is not the same as the color pallette in Access 2003. So if you have a...
2
by: Filips Benoit | last post by:
Dear All, Access 2003 adp on SQL_server 2005 A continious form showing 1 month based on table 'CALENDAR_MONTH_GRID' and fill with a SP. Fields: Companyname, Day1, day2, etc. The value in the...
2
by: robertng90025 | last post by:
I'm having a problem with MS Access 2003 and its conditional formatting. I have textboxes on a continuous form whose left and right margins are set to 0.03 inches. Based on each textbox's...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
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: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
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
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...

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.