Hi,
I was trying to solve this problem but i'm stuck..appreciate if you guys can assist me..
I have a form that will check for mandotary field before exit but my customer requested if they can save the form as draft without have to fill in all the mandatory field.
Therefore I've added "Draft" in the Status list box but when i save the form it still need me to fill in all the mandotary field.
Private Sub Command66_Click()
'On Error GoTo errorStage
If IsNull(Me.t_id) Or Trim(Me.t_id) = "" Then
If status = "Draft" Then
addTable Me.Form.Controls, "Record", "t_id"
MsgBox "Saved"
Forms![f_main].subform.Requery
DoCmd.Close acForm, "f_input"
Else
If myValidate(Me.Form.Controls, requiredColor, 255) = True Then
addTable Me.Form.Controls, "Record", "t_id"
MsgBox "Saved"
Forms![f_main].subform.Requery
DoCmd.Close acForm, "f_input"
Else
MsgBox "Please input all required fields"