Code Form

  • Thread starter Thread starter Hope
  • Start date Start date
H

Hope

I have a form, that is very simple. The only thing I
want to do that would require coding is if someone enters
data into one of two fields, I do not want them to be
able to enter data in the other one also. For example,
there are two fields, one date and one days. If someone
enters what date they can't enter in the number of days
as well same with the other way around. Can someone
please help me with this code?

Thanks,
Hope
 
Hope said:
I have a form, that is very simple. The only thing I
want to do that would require coding is if someone enters
data into one of two fields, I do not want them to be
able to enter data in the other one also. For example,
there are two fields, one date and one days. If someone
enters what date they can't enter in the number of days
as well same with the other way around. Can someone
please help me with this code?

Thanks,
Hope

No code needed. Enter two Validation Rules...

For first TextBox...

IsNull([SecondControlName])=True

For Second TextBox...

IsNull([FirstControlName])=True
 
Back
Top