Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Westi on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

If then Statement

Status
Not open for further replies.

zrazzaq

MIS
Apr 13, 2005
102
US
Hi:
If I wanted to write a between statement in VB using if then like for example between 90011 and 90077
Can I write it as:
If a <= 90011 >= 90077 Then
Is that correct?
Thanks
Z
 
If a >= 90011 And a <= 90077 Then ' a Between 90011 And 90077

Hope This Helps, PH.
Want to get great answers to your Tek-Tips questions? Have a look at FAQ219-2884 or FAQ181-2886
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top