K
Krzysztof via AccessMonster.com
Good Day!!
I currently have working form with a number of IF's and I want to change into
nested, for better programming, and neater code, but it is not allowing me to
do what I want.
I have now:
If LocationPicker = "001" Then
LocationDisplay.Value = "Location Name 1"
Else
End If
If LocationPicker = "002" Then
LocationDisplay.Value = "Location Name 2"
Else
End If
and so on...
I have tried:
If LocationPicker = "001" Then
LocationDisplay.Value = "Location Name 1"
Else
If LocationPicker = "002" Then
LocationDisplay.Value = "Location Name 2"
Else
....
Endif
this tells me it is missing end for block if
i have also tried:
If LocationPicker = "001" Then
LocationDisplay.Value = "Location Name 1"
Else If LocationPicker = "002" Then
LocationDisplay = "Location Name 2"
....
End if
It does not like me to combine 'Else' and 'If' on the same line.
i don't know what I a doing wrong, it seems so simple
Very Much TIA
~K
I currently have working form with a number of IF's and I want to change into
nested, for better programming, and neater code, but it is not allowing me to
do what I want.
I have now:
If LocationPicker = "001" Then
LocationDisplay.Value = "Location Name 1"
Else
End If
If LocationPicker = "002" Then
LocationDisplay.Value = "Location Name 2"
Else
End If
and so on...
I have tried:
If LocationPicker = "001" Then
LocationDisplay.Value = "Location Name 1"
Else
If LocationPicker = "002" Then
LocationDisplay.Value = "Location Name 2"
Else
....
Endif
this tells me it is missing end for block if
i have also tried:
If LocationPicker = "001" Then
LocationDisplay.Value = "Location Name 1"
Else If LocationPicker = "002" Then
LocationDisplay = "Location Name 2"
....
End if
It does not like me to combine 'Else' and 'If' on the same line.
i don't know what I a doing wrong, it seems so simple
Very Much TIA
~K