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 bkrike on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Need help empty Integer?

Status
Not open for further replies.

Sorwen

Technical User
Nov 30, 2002
1,641
US
Most times I don't mind VBA. It works fine, but others it drives me up the wall. What do I do to check for an empty integer variable? Null, Empty, Nothing all only work if the data type is the annoying Variant Data Type. What Can I use? (Side note for a interesting idea Variant is more of a headache than it is worth IMO.)
 
check for an empty integer variable
Only Variant can be Empty (or Null).

Hope This Helps, PH.
Want to get great answers to your Tek-Tips questions? Have a look at FAQ219-2884 or FAQ181-2886
 
Adding to PHV's comment,

An integer without a specific assignment defaults to 0.


Regards,
Mike
 
Thanks. I was just coming back. It was the way I used empty was the problem. Thanks.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top