|
-
Oct 20th, 2000, 08:51 AM
#1
Thread Starter
Hyperactive Member
What a nightmare... RSAddrecord.AddNew what is wrong with this..
---------------------------------------------------
Private Function AddRecord()
Dim strConn
Dim strQuery
Dim i
Dim RSAddrecord
' Create our connection string
strConn = GetConnectionString()
strQuery="SELECT * FROM SUGGESTION"
Set RSAddRecord = createObject("ADODB.Recordset")
RSAddRecord.Open strQuery,strConn,3 'open as clientside cursor
RSAddrecord.AddNew
FOR i = 1 to RS.Fields.Count -1
'RS.Fields(i).Value = RS.Fields(i).Name
RSAddrecord.Fields(i).Value = session("field_1(i).Value")
NEXT
RSAddrecord.Update
End Function
How do i check if recordset is read only?
Many thanks
Gary
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|