troubleshooting Question

URGENT : Getrows with Fieldnames

Avatar of dwe0608
dwe0608Flag for Australia asked on
Visual Basic Classic
4 Comments1 Solution225 ViewsLast Modified:
Hi all

I need to get fieldnames and values into an array so I can cycle through them - I know I can get the recordset values into an array using GetRows

dim arr()
arr = rs.getrows(rs.recordcount)

But that doesnt get the field names.  What I would like to do is get the fieldname, and the fieldvalue, and place it into an array which I can reference in a for ... next statement getting the fieldname and value at the same time

I am not very good with arrays so commented coded answers would be appreciated

MTIA

Darrin

Join the community to see this answer!
Join our exclusive community to see this answer & millions of others.
Unlock 1 Answer and 4 Comments.
Join the Community
Learn from the best

Network and collaborate with thousands of CTOs, CISOs, and IT Pros rooting for you and your success.

Andrew Hancock - VMware vExpert
See if this solution works for you by signing up for a 7 day free trial.
Unlock 1 Answer and 4 Comments.
Try for 7 days

”The time we save is the biggest benefit of E-E to our team. What could take multiple guys 2 hours or more each to find is accessed in around 15 minutes on Experts Exchange.

-Mike Kapnisakis, Warner Bros