RE: UPDATE using params, again, deosn't work
From: Bin Song, MCP (anonymous_at_discussions.microsoft.com)
Date: 05/05/04
- Next message: Mary Chipman: "Re: Making ADODB More Bulletproof and Connection Timeout"
- Previous message: Mary Chipman: "Re: Connection pooling (or not?) with Remote Access database"
- In reply to: dazzalondon: "UPDATE using params, again, deosn't work"
- Messages sorted by: [ date ] [ thread ]
Date: Wed, 5 May 2004 06:16:03 -0700
Hi,
One question is stateEmail is a variable or textbox? if textbox, add .text afterit.
One simple thing is just replace all parameters with values, add the following in the beginning of the sub:
After: Dim str As String
str = "UPDATE ClientDetails SET ContactTitle='" & txtTitle.Text & "', ContactFirstName='" & Fname.Text & "', ContactLastName='" & Sname.Text & "', Tel='" & Tel.Text & "', HospContactPosition='" & txtPosition.Text & "', Fax='" & Fax.Text & "', Add1='" & Add1.Text & "', Add2='" & Add2.Text & "', Add3='" & Add3.Text & "', Add4='" & Add4.Text & "', PostCode='" & PostCode.Text & "', OrgName='" & OrgName.Text & "' WHERE Email='" & stateEmail & "'"
Response.Write(str)
Exit Sub
Then try execute the str value in Query Analyzer to check if the query has any problem.
Bin Song, MCP
- Next message: Mary Chipman: "Re: Making ADODB More Bulletproof and Connection Timeout"
- Previous message: Mary Chipman: "Re: Connection pooling (or not?) with Remote Access database"
- In reply to: dazzalondon: "UPDATE using params, again, deosn't work"
- Messages sorted by: [ date ] [ thread ]
Relevant Pages
|