Sep 19, 2001 #1 AgentM MIS Joined Jun 6, 2001 Messages 387 Location 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 Joined Sep 2, 2001 Messages 351 Location 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.....