Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Westi on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

MSDatashape Question 1

Status
Not open for further replies.

Terpsfan

Programmer
Dec 8, 2000
954
US
I've created a hierarchical recordset through code using MSDatashape. I created child fields to relate to the parent. I'm not using the ADO data control. For some reason I'm not able to update and insert on the parent controls but not on the child. The child is read only. Now if I use the ADODC to bind the controls, then I can update and insert. How can I update and insert not using the ADODC? Hopefully I've made some sense.
 
This basically sets a recordset pointer to the child recordset allowing you to work with the child like you would with any other recordset.

Private Sub mysub()
Dim rs As New ADODB.Recordset

With adoPrimaryRS
Set rs = .Fields("ChildCMD").Value
rs.AddNew
End With


End Sub
 
Thanks for the response. That will work but I decided to go with a stored procedure that will validate the entries and then insert them into the table. I think this will be the best option. Thanks again
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top