ник: pstrkim
Помогите разобраться: делаю подчиненную таблицу
'настраиваю Adodc:
Set adPlaysD = AdodcPlays.Object
adPlaysD.ConnectionString = "Provider=MSDataShape.1;Persist Security Info=False;Data Source=C:\Databases\db12.mdb;Data Provider=Microsoft.Jet.OLEDB.4.0"
adPlaysD.CommandType = adCmdUnknown
adPlaysD.RecordSource = "SHAPE {select PlaysID, ComandIDHost, ComandIDGuest, PlaysDate from Plays} AS ParentCMD APPEND ({select PlaysID, ComandID, PlayerID, TimedPlayed, PlayRate, PlaySum from PlaysDetails} AS ChildCMD RELATE PlaysID TO PlaysID) AS ChildCMD"
'настравиваю таблицу
Set grd = DataGrid1.Object
Set grd.DataSource = adPlaysD.Recordset("ChildCMD").UnderlyingValue -- Ошибка Object variable not set