Results 1 to 5 of 5
  1. #1
    Xixor is offline Novice
    Windows 10 Access 2016
    Join Date
    Feb 2019
    Posts
    20

    Ideas for identifying records that have blank fields (plural)


    Hi, all.

    I have one form setup for users to input data into a table. This form has multiple fields, some of which are always required, some of which are optional, and some of which are only required depending on the selection of an always required field. I HAVE THIS FORM SETUP WORKING PERFECTLY (yay!) using conditional formatting in VBA to highlight blank cells that the user needs to enter something into.

    I have a second form setup that is a continuous form summary display of all of the records the first form creates. I can filter on this continuous form and use it to navigate to the individual record I need. This is 99% complete and working, but there is ONE more thing I would like to implement. I want to display some kind of colored tag records in the continuous form to indicate if that record has blank fields that need to be filled in on the first form.

    I have attached two screenshots of what I am talking about. For example, there are two yellow-highlighted fields in form 1 thanks to my conditional formatting. In form two, I want to add some kind of tag to draw the users attention to that record showing it has fields that need to be filled in.

    I could probably figure this out on my own if we were talking about only a single field, but in this case the code needs to analyze ALL fields on the form, check if any of them are blank that need to be filled in, and then display a marker on the second form. I don't know if there is some code that could analyze if some fields are "yellow" colored (from the other conditional formatting), or if the new code would have to duplicate the underlying conditional formatting code for the entire form.

    *note* Making the user fill all the fields in on the form before being allowed to save is not an option in my use scenario. The forms are meant to be returned to multiple times over a period of time as new information becomes available with the end goal of all fields being complete once all information is known. I just need a visual cue on the continuous form to say "hey this form still has blank fields that need to be filled in".

    Does anyone have any general ideas on how to accomplish this?

    Thank you!!!Click image for larger version. 

Name:	Form 1.png 
Views:	9 
Size:	21.0 KB 
ID:	37967Click image for larger version. 

Name:	Form 2.png 
Views:	9 
Size:	34.4 KB 
ID:	37968

  2. #2
    June7's Avatar
    June7 is offline VIP
    Windows 10 Access 2010 32bit
    Join Date
    May 2011
    Location
    The Great Land
    Posts
    53,772
    Generally, write a custom function that does the 'check'. Function returns True or False. Call function from textbox. Set Conditional Formatting based on value returned.
    How to attach file: http://www.accessforums.net/showthread.php?t=70301 To provide db: copy, remove confidential data, run compact & repair, zip w/Windows Compression.

  3. #3
    Xixor is offline Novice
    Windows 10 Access 2016
    Join Date
    Feb 2019
    Posts
    20
    Thanks June7; that helps a lot.

    Any thoughts on how to approach the custom function? Specifically, is there a way to evaluate each field on the form and check to see if the background color is yellow, or would the function need to basically replicate the underlying conditional formatting VBA to evaluate all the coditions for all of the fields?

  4. #4
    June7's Avatar
    June7 is offline VIP
    Windows 10 Access 2010 32bit
    Join Date
    May 2011
    Location
    The Great Land
    Posts
    53,772
    Think I've dealt with this question before and no, don't think there is any way to grab the color set by Conditional Formatting. So, yes, replicate the rules in VBA.
    How to attach file: http://www.accessforums.net/showthread.php?t=70301 To provide db: copy, remove confidential data, run compact & repair, zip w/Windows Compression.

  5. #5
    Xixor is offline Novice
    Windows 10 Access 2016
    Join Date
    Feb 2019
    Posts
    20
    Got it, thanks!

Please reply to this thread with any new information or opinions.

Similar Threads

  1. Replies: 1
    Last Post: 02-24-2017, 12:53 PM
  2. Identifying the unique records in a table
    By Jessica240 in forum Queries
    Replies: 1
    Last Post: 03-25-2015, 03:51 PM
  3. Query is excluding records with blank fields
    By Menelaus in forum Queries
    Replies: 1
    Last Post: 03-28-2013, 08:14 PM
  4. Replies: 6
    Last Post: 01-29-2013, 09:48 AM
  5. Identifying Changed Fields in Two Tables
    By novice in forum Queries
    Replies: 1
    Last Post: 12-16-2010, 05:43 AM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
Other Forums: Microsoft Office Forums