Nagesh
Member
- Local time
- Today, 12:00
- Joined
- May 10, 2020
- Messages
- 31
Hi,
Some fields in a form needs to be checked for null entries.
Is there function to determine whether the field is null and 'set focus' to that particular field and also exit code?
I use the below code and repeating the same for each field to check the null value;
It would be great if we can use a VB function for this.
Some fields in a form needs to be checked for null entries.
Is there function to determine whether the field is null and 'set focus' to that particular field and also exit code?
I use the below code and repeating the same for each field to check the null value;
Code:
' Check for null entries
If IsNull(Fname) Or Fname = "" Then
MsgBox "Please fill in your First Name !!"
Fname.SetFocus
Exit Sub
End If
It would be great if we can use a VB function for this.