|
-
Jun 12th, 2005, 07:38 AM
#1
Thread Starter
Fanatic Member
Re: update databse sql every records
objconnection.Execute "update table1 set Field1 = field1-1 where field2 = " & val(me.text1)
this code should be "update FROM table1 "
but it is not doing anything to the records, anyway thanks for response
-
Jun 12th, 2005, 09:03 AM
#2
Re: update databse sql every records
In MS SQL Server...
UPDATE TABLE SET COLUMN=NEWVALUE WHERE CONDITION=SOMETHING
...is valid
Your WHERE clause must not be finding anything.
And the suggestion to use an ACTION query .EXECUTE'd against the DB is a good one. Using the RS to UPDATE the table is not required.
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
|