Why is it converting to long?
Im having problems with this code
MsgBox(txtInsertName.Text And txtInsertAge.Text)
This code will work and gives me the text in the text box
MsgBox(txtInsertName.Text)
But if I put "and txtInsertAge.text" then it gives an exception on whatever value is in txtInsertName stating;
Conversion from string "bob" to type 'Long' is not valid.
Re: Why is it converting to long?
and is a bitwise operator.
for string concatenation use &
Re: Why is it converting to long?
thanks. works now. and looks quite a bit familiar.