|  | 
| Error 3420 | 
| Post Reply   | 
| Author | |
| cryo75   Groupie   Joined: 04 June 2006 Status: Offline Points: 49 |  Post Options  Thanks(0)  Quote  Reply  Topic: Error 3420 Posted: 08 December 2006 at 12:38pm | 
| 
   Hi,
 I'm getting an error 3420 (The object is not valid anymore) with the following code:         With grdList For Each oRec In grdList.Records eType = Val(oRec.Item(ID_GRID_TYPE).Value) If (eIngType = bbMyType) Then oRec.Visible = True Else oRec.Visible = False End If Next oRec .Populate End With The line causing the error is: eType = Val(oRec.Item(ID_GRID_TYPE).Value) The item object is totally empty (it looks like an ADO field object). I have previously filled all records (and items) by loop through my own ado recordset and setting values. Any ideas? Thanks, Ivan | |
|  | |
| cryo75   Groupie   Joined: 04 June 2006 Status: Offline Points: 49 |  Post Options  Thanks(0)  Quote  Reply  Posted: 09 December 2006 at 2:18am | 
| 
   Problem solved!
 The Additem method of the record object accepts a variant. I was adding the ado field object. I needed to pass the field's value!! | |
|  | |
| Post Reply   | |
| Tweet | 
| Forum Jump | Forum Permissions  You cannot post new topics in this forum You cannot reply to topics in this forum You cannot delete your posts in this forum You cannot edit your posts in this forum You cannot create polls in this forum You cannot vote in polls in this forum |