And "air code" comes off the top of "air heads" :-) LOL...
Just an FYI, the TO operator in VBA doesn't work the way I was trying to use it included in an IF---Then statement, that was why that code wouldn't work!
However, it will work in a Select Case statement in this way (go figure... M$ must have a good reason for making perfectly goofy logic where it will work in Select, but not in If---Then):
-
Select Case Me.Extension
-
Case 60000 To 69999
-
Me.Exchange = "85-"
-
Case 40000 To 49999
-
Me.Exchange = "33-"
-
Case Else
-
Me.Exchange = ""
-
End Select
TO is also used in For---Next Loop statements to qualify the number of times to loop. I.e.
- For I = 1 To 10
-
For J = 1 To 10
-
For K = 1 To 10
-
...
-
Next K
-
Next J
-
Next I
-
It also has a few other uses, look it up in the Access VBA help file for more information.
Regards,
Scott