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 biv343 on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Problem with multiple entries...

Status
Not open for further replies.

sladewilson

Programmer
Feb 14, 2002
90
US
I have an ASP Application that allows members to update their info. My problem is that when they update an entry the application adds a second entry in the database instead of simply updating the intended one.

How can I make the application know to update a specific recordset. Is there some place on the web that gives a specific example of how this should be done?
 
Use this syntax:

UPDATE yourtable SET field1 = 'This Data' WHERE ID = 'myrecordID'

Will update the specific field which matches the 'WHERE' clause (i.e. where the field id = 'myrecordID'.

If you need further clarification just ask ;-) Nick (Software Developer)


nick@retrographics.fsnet.co.uk
nick.price@myenable.com
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top