You need to join the If statements to isolate the invalid ranges. Look back over the provided code for instances of ElseIf to see the structure you need to show invalid distances. The basic premise is as follows.
If test then
' do something
ElseIf test2 then
' do something else
Else
' what happens when the distance isn't valid
End If
__________________
Andrew Lockton
Chrysalis Design, Melbourne Australia
|