Robert, if you are dealing with a TEXT BOX on a form, then VB sees that data as a TEXT STRING. You need to use VAL() to convert it to a number.
If you are using MEMORY VARIABLES then you don't need VAL() because you've already specified when you DIM'd the variable what type it is (integer, etc.)
Sorry, only students may add comments.
Click here for more
information on how you can set up an account.
If you are a Visitor, go ahead and post your reply as a
new comment, and we'll move it here for you
once it's approved. Be sure to use the same name and email address.
This thread is now CLOSED. If you wish to comment, start a NEW discussion in
Visual Basic 102.