Open record set for update

Results 1 to 2 of 2

Thread: Open record set for update

  1. #1
    Join Date
    Dec 1969

    Default Open record set for update

    i am doing updating of data from a bd. In my form, when user changes a data & clicks the update button, db should reflect changes. but i have got erro msg saying "invalid SQL stament" for the last line in this msg. Pls help.. <BR><BR>My syntax is to<BR> 1) Put in the include file<BR> 2) Create space & open record set object<BR><BR><BR>&#060;!--#include file=""--&#062;<BR><BR>&#060;% Set objRSHorse=Server.CreateObject("ADODB.Recordset")% &#062;<BR><BR>&#060;%objRSHorse.Open "horse", objConn, adOpenStatic, adLockOptimistic, adCmdText%&#062;<BR><BR>

  2. #2
    Join Date
    Dec 1969

    Default yes, that'sright.

    "horse" is an invalid SQL statement. is it the table name? in that case, use adCmdTable<BR><BR>however, if you&#039;re doing a recordset update I have to tell you a SQL UPDATE statement is bioth quicker and more reliable<BR><BR>

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts