If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below.

 
Go Back  dBforums > Data Access, Manipulation & Batch Languages > Delphi, C etc > How to access child recordset of a hierarchical cursor in code?

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1 (permalink)  
Old 03-29-04, 06:37
jsoans jsoans is offline
Registered User
 
Join Date: Mar 2004
Posts: 7
How to access child recordset of a hierarchical cursor in code?

I am not able to access the child Recordset in the following code:

mrstDayBook.Fields("Chapter1").Fields(bbbdbName).V alue

where mrstDaybook is a hierarchical recordset produced by a SHAPE command and "Chapter1" is the ( default ) name of the field automatically appended to a parent Recordset by the SHAPE command.
Reply With Quote
  #2 (permalink)  
Old 03-31-04, 16:17
kdriver kdriver is offline
Registered User
 
Join Date: Mar 2004
Posts: 6
The chapter (subordinate recordset) can only be accessed as a recordset.

Dim workingRecordset as recordset
workingrecordset = mrstDayBook.Fields("Chapter1").Value

while not workingrecordset.eof
' do your stuff
workingrecordset.movenext
wend
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

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