If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below.

 
Go Back  dBforums > Data Access, Manipulation & Batch Languages > ASP > Viewing Records and Updating

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1 (permalink)  
Old 12-10-04, 17:44
katlees katlees is offline
Registered User
 
Join Date: Jul 2004
Posts: 3
Angry Viewing Records and Updating

I want my admin person to enter in an ID# and pull up a record. (I get this to work). I want it to open up in a form already filled in with the data from the record (I can get this to work too.) My problem comes in when I want them to be able to type over the data that pulls up and click on update to update the record.

Any help would be appreciated.
Reply With Quote
  #2 (permalink)  
Old 12-13-04, 02:14
yawong yawong is offline
Registered User
 
Join Date: Dec 2004
Posts: 3
It will be the same as you insert a record into the database.
The only difference will be you will use "UPDATE" instead of "INSERT", and you need "Where..." parameter in order to find out exact record you want to update, and apply the command.
The whole process will be like this:
Collect all the data in the form, and pass it to another ASP script file that contains following SQL query string. "UPDATE field name1, field name2... value(value1, value2...) where keyfieldname=value"
Of course, you may want to check the data that was input by the user before update to see if all the data is in the right format. Because almost no one wants to users to destroy their application and database by entering some bad data in it.
Good Luck!

Last edited by yawong; 12-13-04 at 02:16.
Reply With Quote
Reply

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On