Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations TouchToneTommy on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

update statement

Status
Not open for further replies.

halukorhan1

IS-IT--Management
Oct 15, 2003
19
TR
I want to update the field (towhere) as "H" where the field is homeemail = null (empty)

------------
SQL_update = "UPDATE Tmembers"
SQL_update = SQL_update & " SET towhere = '" & "H" & "'"
SQL_update = SQL_update & " WHERE HOMEEMAIL is null"

Set objRS_update = Server.CreateObject ("ADODB.Recordset")
objRS_update.Open SQL_update, strConnect
-----------------

Does not do anything!

Any help is appreciated!
 
Hi,

I normally do my update statements with a stored procedure, not saying thats the best way to do it, but it works!

Nowell
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top