var sidebar_align = 'right';
var content_container_margin = parseInt('290px');
var sidebar_width = parseInt('270px');
Unanswered: Code where one of two fields are required
I have a form where I would like one of two fields mandatory to fill.
I have an encryption password field and a pen drive password field. I would it so when the user tries to close the form, one of these two fields has to be filled in.
How would I acheive this?
Any help will be much appreciated
You could use:
If Nz(Me.Field1.Value, "") = "" And Nz(Me.Field2.Value, "") = "" Then
' Do something when both controls are empty.
' Do something when one of the control is not empty.
Have a nice day!
Tags for this Thread