JithuAccess
Member
- Local time
- Today, 16:52
- Joined
- Mar 3, 2020
- Messages
- 297
Hello Guys,
This seems to be very simple but I am not getting a solution.
I have a field in my Form "Data Entry By". This field is a mandatory field. So I have wrote this code in the LostFocus Event of "Data Entry By"
But I want trigger this code when I navigate the Record. For Example if there are 10 records, when a user navigate from record 1 to record to, I want trigger this code if "Data Entry By" is blank.
I have tried this code in the Before Update event of the Form and it is not working.
Or is there any simple method for this (Except LostFocus please)
Thanks
This seems to be very simple but I am not getting a solution.
I have a field in my Form "Data Entry By". This field is a mandatory field. So I have wrote this code in the LostFocus Event of "Data Entry By"
Code:
Private Sub strDataEntryBy_LostFocus()
If IsNull(Me.strDataEntryBy) Then
MsgBox "'Data Entry By' should not be blank", vbInformation, "Blank!!!"
Cancel = True
End If
End Sub
But I want trigger this code when I navigate the Record. For Example if there are 10 records, when a user navigate from record 1 to record to, I want trigger this code if "Data Entry By" is blank.
I have tried this code in the Before Update event of the Form and it is not working.
Or is there any simple method for this (Except LostFocus please)
Thanks