|
-
Feb 25th, 2007, 02:50 PM
#1
Thread Starter
Hyperactive Member
Update Field In SQL Server
Hello!
I have a field in the database where i store the size of some images. The field's type is float. I wan't to be able to update these numbers but i get:Error converting datatype varchar to float. Why?
This is the code i use:
str = "UPDATE Table1 SET"
str = str & ", Size = '" & (Text1.Text) & "' "
str = str & " WHERE Id = " & (Text2.Text)
Any ideas? Thank's!
Last edited by Paytor; Feb 25th, 2007 at 03:05 PM.
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|