Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 7972485
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 4, 20262026-06-04T07:52:48+00:00 2026-06-04T07:52:48+00:00

Something that I would assume comes up a lot… I’d like to know if

  • 0

Something that I would assume comes up a lot…

I’d like to know if there’s a way to, in Access’ Conditional Formatting, format all blank fields. In my case, all fields generally need to be entered, but not in all cases. So, instead of writing a bunch of conditional code to restrict the user to writing it in there, I just want some red backgrounds in my fields as a reminder “hey, there’s nothing in here.. sure that’s what you wanted?”

It’s on a tablet so Message Boxes would be annoying. So conditional formatting it is. I know you can have “Is Null([Field]) but that requires me to go through my 20+ forms on 30+ fields and ensure proper field names etc, then type the condition for them individually. Is there a way I can simply multi-select my fields, do a conditional format on Multiple, and use maybe “Is Equal To: NULL”?

I’ve tried “equal to: Null” and it doesn’t work.. nor does “equal to: “” ” (using the Access constants). Ideas why? Or how I can get around this? Also, it’s only necessary for non-touched fields, so if the user starts to type then deletes back to blank, I don’t care; it can stay unformatted or go back to red, so if there’s a better way to do this I’m all eyes.

EDIT: I’ve started doing some VBA code which I will paste into all my forms:

Private Sub Form_Load()
Dim ctl As Control
Dim reqCol As Long
Dim focusCol As Long
Dim doneCol As Long
Dim format As FormatCondition

reqCol = RGB(246, 180, 180)
focusCol = RGB(252, 249, 238)
doneCol = RGB(255, 255, 255)

For Each ctl In Me.Controls
    With ctl
        Me.Controls(ctl.Name).FormatConditions.Delete 'Delete the existing conditions.
        Me.Controls(ctl.Name).BackColor = doneCol 'Set the background color to the done color.

        Select Case .ControlType
            Case acTextBox
                'Create the format objects.
                format = Me.Controls(ctl.Name).FormatConditions.Add(acFieldValue, acEqual, "")
                format = Me.Controls(ctl.Name).FormatConditions.Add(acFieldHasFocus)

                'Format the filled in boxes (ie set back to red)
                With Me.Controls(ctl.Name).FormatConditions(0)
                    .BackColor = reqCol
                    .Enabled = True
                End With

                'Format the current field color (ie set to beige)
                With Me.Controls(ctl.Name).FormatConditions(1)
                    .BackColor = focusCol
                    .Enabled = True
                End With
        End Select
    End With
Next ctl
End Sub

Problem is that FormatConditions.Add(acFieldValue, acEqual, "") doesn’t work for the same reason… how do I get around this? Seeing as VBA and the built-in conditions are both flawed, seems like a bug. Or I’m missing something right in front of me..

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-04T07:52:49+00:00Added an answer on June 4, 2026 at 7:52 am

    Set default format to the way to want zero length data to appear.
    use

    Field Value Is greater than ''

    for the conditional formatting and set that format to how it should appear with text in the field.

    Screenshot of conditional formatting

    You can select multiple fields with Shift+click in design view to select all the appropriate fields that this needs to be applied to

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

What I need is something like this: /<[\w\d]+ ([\w\d]+\=[w\d])+\/>/ Something that would match several
I am looking for something like a Queue that would allow me to put
In jquery that is. I would like something that works as the success-pararameter, but
This is something that I solved using reflection, but would like to see how
I'm looking for something like createdb in PostgreSQL or any other solution that would
I'm trying to do something that would be really simple in any other language
Warning: Note that this is a dumb question of something that I would probably
I'm trying to do something that i would think to be rather simple. I
I'm looking for something to add to my .vimrc that would tell MacVim to
What tools helps designing sites which would be mobile phone friendly ? Something that

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.