May 31, 2001 #1 MikeT IS-IT--Management Joined Feb 1, 2001 Messages 376 Location US rs("myNumber"=rs("myNumber"+.2 If i put a whole number in place of .2, it works fine. The field in the database is setup decimal, but when I use .2 I get a type mismatch error. Any Ideas?
rs("myNumber"=rs("myNumber"+.2 If i put a whole number in place of .2, it works fine. The field in the database is setup decimal, but when I use .2 I get a type mismatch error. Any Ideas?
Jun 1, 2001 #2 Mighty Programmer Joined Feb 22, 2001 Messages 1,682 Location US Try converting the whole number to a double before you submit it: Dim myNumber myNumber = cDbl(rs("mynumber" + 0.2) Mise Le Meas, Mighty Upvote 0 Downvote
Try converting the whole number to a double before you submit it: Dim myNumber myNumber = cDbl(rs("mynumber" + 0.2) Mise Le Meas, Mighty
Jun 1, 2001 Thread starter #3 MikeT IS-IT--Management Joined Feb 1, 2001 Messages 376 Location US Thanks for the tip; I had to tweak it a bit to get it to work though: temp=cdbl(rs("myNumber") temp=temp+.2 rs("myNumber"=temp Whatever works I guess... Upvote 0 Downvote
Thanks for the tip; I had to tweak it a bit to get it to work though: temp=cdbl(rs("myNumber") temp=temp+.2 rs("myNumber"=temp Whatever works I guess...