How do I make an if statement which is linked to checkboxes. The code I have at the moment is:
If Me.Not_Landing = "yes" Then TxtTotal.Value = "Not Landing"
Else
If Me.Not_Landing = "no" Then
Me.TxtLand = Me.TxtLand & vbCrLf & Now()
Me.TxtLand = Me.TxtLand & vbCrLf
TxtLaunch.SetFocus
TxtTotal.Value = (TxtLand.Value - TxtLaunch.Value)
End If
End If
it says "Else without If"
What am I doing wrong D:
Thanks in advance
If Me.Not_Landing = "yes" Then TxtTotal.Value = "Not Landing"
Else
If Me.Not_Landing = "no" Then
Me.TxtLand = Me.TxtLand & vbCrLf & Now()
Me.TxtLand = Me.TxtLand & vbCrLf
TxtLaunch.SetFocus
TxtTotal.Value = (TxtLand.Value - TxtLaunch.Value)
End If
End If
it says "Else without If"
What am I doing wrong D:
Thanks in advance