Hi, I have an interesting problem regarding the correct code for expression.
I have a form with fields "type","item","order". To ensure that all the fields are filled by the user, there is a small code in the before update as :
If Len(Me!type & ""
= 0 Or Len(Me!order & ""
= 0 Or Len(Me!item & ""
= 0 Then
MsgBox "You Must enter data in all fields", vbInformation + vbOKOnly
Cancel = True
End If
Now my after update has a macro to start an append query.
Now everything works fine. If the conditions for before update are not fulfilled, I get a MsgBox "You Must enter data in all fields", and then the usual message from access that "You can't save this record" and the form closes.
Now is it possible to replace this message from the system by my own message with the same "yes' "no" options. With "yes" the form can close with out running the macro and with "no" the form can comtinue.
Thanks in advance
I have a form with fields "type","item","order". To ensure that all the fields are filled by the user, there is a small code in the before update as :
If Len(Me!type & ""
MsgBox "You Must enter data in all fields", vbInformation + vbOKOnly
Cancel = True
End If
Now my after update has a macro to start an append query.
Now everything works fine. If the conditions for before update are not fulfilled, I get a MsgBox "You Must enter data in all fields", and then the usual message from access that "You can't save this record" and the form closes.
Now is it possible to replace this message from the system by my own message with the same "yes' "no" options. With "yes" the form can close with out running the macro and with "no" the form can comtinue.
Thanks in advance