M
malik via AccessMonster.com
Hi
I have a Parent Form name "FrmDrVoucher" and a Subform (Continuous) name
"FrmDrVoucherBodySubForm".
I have a textfield control on subform name "TxtAccountNo"
The IsNull() function is not working.
I am using the following code in BeforeUpdate event of this control.
Private Sub TxtAccountNo_BeforeUpdate(Cancel As Integer)
If IsNull(Me.TxtAccountNo) Then
MsgBox ("Account No. is required")
DoCmd.CancelEvent
End If
End Sub
This Code is not working. I mean if the user do not fill it , it let the
cursor go in the next field.
Thank you
I have a Parent Form name "FrmDrVoucher" and a Subform (Continuous) name
"FrmDrVoucherBodySubForm".
I have a textfield control on subform name "TxtAccountNo"
The IsNull() function is not working.
I am using the following code in BeforeUpdate event of this control.
Private Sub TxtAccountNo_BeforeUpdate(Cancel As Integer)
If IsNull(Me.TxtAccountNo) Then
MsgBox ("Account No. is required")
DoCmd.CancelEvent
End If
End Sub
This Code is not working. I mean if the user do not fill it , it let the
cursor go in the next field.
Thank you