How to hightlight fields that are null in a form (1 Viewer)

Nick.NZ

New member
Local time
Tomorrow, 10:26
Joined
Nov 14, 2021
Messages
15
Hey guys,

Another question. When I click the save button on a form, before it saves the data, is there a way to check null fields, and highlight them?


1637912202080.png



Thanks Nick
 

arnelgp

..forever waiting... waiting for jellybean!
Local time
Tomorrow, 06:26
Joined
May 7, 2009
Messages
19,247
you need to add code to the Form's BeforeUpdate to Cancel if there are
some blank fields.
it is best to use Tag property of the control, so only those with tags are
actually checked.

adding a button (and code on the button) on your form will not prevent it from saving the record.
you need to check it in the Form's beforeUpdate event.

if you need for those buttons to work as intented, you need to add Transaction to your form.
 

Attachments

  • sample_gsheet.accdb
    912 KB · Views: 182

Users who are viewing this thread

Top Bottom