Please help first time ADO data control User 
Author Message
 Please help first time ADO data control User

Does anyone know what I have to do to get an ADO data control's
recordset to save to an oracle database. I am used to RDOs and when I
pass values to the recordset it keeps falling over when I  .update. I
have made sure the properties Cursortype is 1- adOpenKeyset and that
Mode is read write etc. I would normally use a .edit command but it
looks like you don't have to use this with ADO.recordsets   Please HELP
I have
asked loads of colleagues.


Mon, 29 Apr 2002 03:00:00 GMT  
 Please help first time ADO data control User
Not sure about the control as I haven't yet used it but I have done it in code
for what it's worth:

Set cn = New ADODB.Connection
With cn
        .ConnectionTimeout = 3
        .CursorLocation = adUseClient
End With
cn.Open "Provider=MSDAORA;Data Source=[Your Data Source];User Id=[Your User
ID];Password=[Your Password];"

Set rs= New ADODB.Recordset
rs "Select * from ATable", cn, OpenKeyset, adLockOptimistic

rs.addnew
rs!Field1=text1.text
rs!Field2=text2.text
rs.update

Tim H.



Mon, 29 Apr 2002 03:00:00 GMT  
 Please help first time ADO data control User
oops
rs.open "Select.....

not

rs "Select..."

Tim H.



Mon, 29 Apr 2002 03:00:00 GMT  
 
 [ 3 post ] 

 Relevant Pages 

1. First Cell Empty in Data Grid bound to ADO Data Control

2. Using ADO Data Control on User Control as Data Source

3. Create User Control as Data Source Using ADO Data Control

4. Help Needed for first time user....

5. ADO Data Control - Design Time/Run Time database locations

6. No Find First in Ado Data Control?

7. Getting Meta Data only from ADO Data Control at Design time

8. Help please: ADO data control - how to cancel an update

9. Problems with ADO Data Control in User Controls

10. PLEASE HELP, PLEASE HELP, PLEASE HELP, PLEASE HELP, PLEASE HELP, PLEASE HELP, PLEASE HELP,

11. Real Time Control and Timed Routines, please help

12. getting run-time behavior of a contained control in a user control at design time

 

 
Powered by phpBB® Forum Software