Correct Syntax

D

Dirk Goldgar

In
DS said:
Which one is correct? And does it matter?

If Forms!frmOne!TxtOne <= 0 Then
Me.TxtTwo = 1
Else
End If

If Forms!frmOne!TxtOne <= 0 Then
Me.TxtTwo = 1
End If

In other words is the "else" needed.

No, the Else clause is not needed.
 
D

DS

Which one is correct? And does it matter?

If Forms!frmOne!TxtOne <= 0 Then
Me.TxtTwo = 1
Else
End If

If Forms!frmOne!TxtOne <= 0 Then
Me.TxtTwo = 1
End If

In other words is the "else" needed.
Thanks
DS
 
Top