Sep 19, 2001 #1 AgentM MIS Jun 6, 2001 387 US Is there a way to retrieve the number of fields in a sql query or the table fields from a sql query
Sep 19, 2001 1 #2 jitter Technical User Sep 2, 2001 351 US Sure, if all you need is the number of fields you can just use: objRS.Fields.Count for other information you could loop through and get the information. Here is a small example: For Each Field In ObjRS.Fields Response.Write Field.Name & "<br>" Next This will give you the name of each field in the recordset. Hope this helps..... Upvote 0 Downvote
Sure, if all you need is the number of fields you can just use: objRS.Fields.Count for other information you could loop through and get the information. Here is a small example: For Each Field In ObjRS.Fields Response.Write Field.Name & "<br>" Next This will give you the name of each field in the recordset. Hope this helps.....