Hello All
I've have a form (dialog) with multiple text box and list box controls on it. I want to force users to enter information into each control.
I set up a 'Before Update' event procedure and I used the following code:
'SPCGenReason' is the name of the control and this control is a text box.
This worked initially (i.e. the message appeared when the user left the control blank) but then it just stopped working. I have no idea what could have caused this.
Can anybody:
1. explain what might have happened and
2. what I can do to RELIABLY achieve my goal of forcing users to enter information
I've have a form (dialog) with multiple text box and list box controls on it. I want to force users to enter information into each control.
I set up a 'Before Update' event procedure and I used the following code:
Code:
If IsNull(Me.SPCGenReason) Then MsgBox "You MUST provide a reason for this transaction.", vbOKCancel
'SPCGenReason' is the name of the control and this control is a text box.
This worked initially (i.e. the message appeared when the user left the control blank) but then it just stopped working. I have no idea what could have caused this.
Can anybody:
1. explain what might have happened and
2. what I can do to RELIABLY achieve my goal of forcing users to enter information