Hallo
I am confused as to which route to follow. I have a tabbed form with a number of required fields scattered over several tab pages. Therefore, I want to make it easier to determine where the required field that has been missed can be found.
(1) The following link/ article recommends putting code both in the On Current Property and the After Update Event Property. The code is the same for both properties.
The link: http://www.techonthenet.com/access/forms/change_bg.php
The recommended code:
If IsNull(ContactTitle) = True Then
ContactTitle.BackColor = vbRed
Else
ContactTitle.BackColor = vbWhite
End If
(2) There are also a number of references on the Net which recommend the Conditional Formatting feature; i.e. one should put: [FONT="]IsNull(FieldName.Value)[/FONT] as Condition1.
(3) When I briefly looked into articles explaining validation rules, it was always pointed out that the Required Field property should be set to No. I did not find any such recommendation for the conditional formatting feature or in the link I have quoted. Is it yes or is it no for the two methods I am looking at currently?
I have a very limited understanding of code and do not want leaving bits and pieces behind after experimenting.
I am confused as to which route to follow. I have a tabbed form with a number of required fields scattered over several tab pages. Therefore, I want to make it easier to determine where the required field that has been missed can be found.
(1) The following link/ article recommends putting code both in the On Current Property and the After Update Event Property. The code is the same for both properties.
The link: http://www.techonthenet.com/access/forms/change_bg.php
The recommended code:
If IsNull(ContactTitle) = True Then
ContactTitle.BackColor = vbRed
Else
ContactTitle.BackColor = vbWhite
End If
(2) There are also a number of references on the Net which recommend the Conditional Formatting feature; i.e. one should put: [FONT="]IsNull(FieldName.Value)[/FONT] as Condition1.
(3) When I briefly looked into articles explaining validation rules, it was always pointed out that the Required Field property should be set to No. I did not find any such recommendation for the conditional formatting feature or in the link I have quoted. Is it yes or is it no for the two methods I am looking at currently?
I have a very limited understanding of code and do not want leaving bits and pieces behind after experimenting.