Welcome to the dBforums forums.

You are currently viewing our boards as a guest which gives you limited access to view most discussions, articles and access our other FREE features. By joining our free community you will have access to post topics, communicate privately with other members (PM), respond to polls, upload your own photos and access many other special features. Registration is fast, simple and absolutely free so please, join our community today!

If you have any problems with the registration process or your account login, please contact contact support.

If you prefer not to see double-underlined words and corresponding ads, place your cursor
here for ContentLink opt out.

Go Back  dBforums > Data Access, Manipulation & Batch Languages > ASP > Updating a SQL table

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1 (permalink)  
Old 06-14-04, 08:27
SexualChocolate SexualChocolate is offline
Registered User
 
Join Date: Sep 2003
Location: Birmingham, UK
Posts: 121
Updating a SQL table

Hiya folks,
I very inexperienced in ASP (or any other internet based language) but I need to design a form in which users can enter data and then update the underlying SQL tables.

I managed to get a connection into db and can return back a recordset, using this recordset I can then create a standard html table (non updateable) and display this recordset.

But I need to be able to allow the users to change this recordset and post the changes back to the SQL engine.

Put very simply I haven't got the faintest idea where to start. I have searched thru the forums and searched the net but I'm not sure exactly what I'm looking for, so the search has been useless.

Any advice or code snippets would be greatly appreciated.


Love and peace
Reply With Quote
  #2 (permalink)  
Old 06-14-04, 13:02
Seppuku Seppuku is offline
Useless...
 
Join Date: Jul 2003
Location: SoCal
Posts: 721
Your first recordset should be used to create an HTML page with a form. That form will have input values populated by your initial recordset. The submit button will submit to another ASP page that connects to your DB and executes some SQL. The difference being that this second SQL statement will be an UPDATE query and not a SELECT query (or you can execute a stored procedure and pass it the values).
__________________
That which does not kill me postpones the inevitable.
Reply With Quote
  #3 (permalink)  
Old 06-15-04, 05:07
SexualChocolate SexualChocolate is offline
Registered User
 
Join Date: Sep 2003
Location: Birmingham, UK
Posts: 121
After much looking around I did manage to find a method for doing it, which I'm pleased to say is the same as the answer you suggested. All I've got to do is code it!!

Thanks for your time.

Love and peace

Ps Doubtless I'll back!
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

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