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

Does anybody know, why I cannot use

Status
Not open for further replies.

AtharIqbal

IS-IT--Management
Mar 2, 2002
5
0
0
US
Does anybody know, why I cannot use the Grand Child's Name as DataSource.

Here is the code....It gives me error when I try the set the datasource as TasksCMD...Error is "Item not found in collection corresponding to name or ordinal"

rsText = "SHAPE {SELECT * FROM Projects} AS ProjCMD " & _
"APPEND " & _
"((SHAPE {SELECT * FROM SubProjects} " & _
"APPEND ({SELECT * FROM Tasks} AS TasksCMD " & _
"RELATE ProjID TO TaskProjID, SProjID TO TaskSProjID) " & _
"AS TasksCMD) " & _
"RELATE ProjID TO ProjID) AS SubProjCMD"

adoPrimaryRS.Open rsText, db, adOpenStatic, adLockOptimistic

Set grdProjects.DataSource = adoPrimaryRS
Set grdSubProjects.DataSource = adoPrimaryRS("SubProjCMD").UnderlyingValue
Set grdTasks.DataSource = adoPrimaryRS("TasksCMD").UnderlyingValue

Any help will be appreciated....

 
That message means that it cannon find the table column which you have requested.

Either SubProjCMD or TasksCMD are invalid column names.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top