Correct Syntax

  • Thread starter Thread starter Dirk Goldgar
  • Start date Start date
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.
 
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
 
Back
Top