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
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top