It means more or less exactly what it says: you're defining intNumber twice, the second one effectively "hiding" the first one. Inside the loop you're creating a *new* variable called intNumber using "intNumber as Integer". By using this name, you can no longer reach the intNumber you defined outside the loop. My guess is you only intend to have one, so the fix would either be:
Code:
Dim intNumber
For intNumber = 1 To 6
lblStars.Text = intNumber
intNumber = Val(InputBox("Hotel Rating"))
Next
or
Code:
For intNumber As Integer = 1 To 6
lblStars.Text = intNumber
intNumber = Val(InputBox("Hotel Rating"))
Next
In the former case, intNumber is also available outside of the For loop.
Hope this helps,
Imar