C
consjoe
In my form I have a drop down box with three Options A,H,L
If A is selected then another field (Due Date) needs to be required.
If H or L is selected then field (Type) needs to be required.
However, if A is selected there will never be a Type and if H or L is
selected there will never be a due date.
Thanks for your help in advance.
I couldn't get this to work but the best I came up with was this:
If (Me.Option) = "A" Then
Require (Me.Due_Date)
If IsNull(Me.Due_Date) then
Msgbox "All A's must have a due date"
else
Goto AddingRecord
endif
endif
If (Me.Option) = "H" or If (Me.Option) = "L"
Require (Me.Type)
If IsNUll(Me.Type) then
Msgbox "All H's and L's must have a type"
else
Goto AddingRecord
endif
endif
AddingRecord:
If A is selected then another field (Due Date) needs to be required.
If H or L is selected then field (Type) needs to be required.
However, if A is selected there will never be a Type and if H or L is
selected there will never be a due date.
Thanks for your help in advance.
I couldn't get this to work but the best I came up with was this:
If (Me.Option) = "A" Then
Require (Me.Due_Date)
If IsNull(Me.Due_Date) then
Msgbox "All A's must have a due date"
else
Goto AddingRecord
endif
endif
If (Me.Option) = "H" or If (Me.Option) = "L"
Require (Me.Type)
If IsNUll(Me.Type) then
Msgbox "All H's and L's must have a type"
else
Goto AddingRecord
endif
endif
AddingRecord: