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 TouchToneTommy on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

ADODB Recordset for More than 1 Subform 1

Status
Not open for further replies.

paulgenga

Programmer
Jan 8, 2004
61
KE
Is it possible to open a recordset with multiple subforms
i.e append more than 1 ChildCMD.

Code:
Set adoPrimaryRS = New Recordset
adoPrimaryRS.Open "SHAPE {" & Sv1 & "} AS ParentCMD APPEND ({" & Sv2 & " } AS ChildCMD RELATE LotID TO LotID) AS ChildCMD", db, adOpenStatic, adLockOptimistic
 
Absolutely. Here's an example from on of my old projects:

"SHAPE {SELECT * from Bond} APPEND ((SHAPE {SELECT * FROM Maturity} APPEND ({SELECT * from TPFADS} AS DebtSvc RELATE ID to MaturityID)) As MaturityDebtSvc RELATE ID to parentID)"


I used to rock and roll every night and party every day. Then it was every other day. Now I'm lucky if I can find 30 minutes a week in which to get funky. - Homer Simpson
 
Thank you Mr Simpson,
I am a great fun. This works great
J.Bravo
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top