Solved

How to treat fields name of  table as a clletion or object?

Posted on 2012-03-29
2
244 Views
Last Modified: 2012-06-27
Hello,

My friend is trying to read data from a MySQL table using VBScript and wondering if instead of typing each field of the table in his code one by one could use an object (like dealing with collection) and read all the field of a table and read them.

Is this possible in VBScript?

Thanks,
Ak
0
Comment
Question by:akohan
2 Comments
 
LVL 17

Accepted Solution

by:
andrewssd3 earned 100 total points
ID: 37784339
I have not done this, but I believe you can connect to MySQL using ADODB (see for example this).  Then once you read your data into a normal Recordset, you have the Fields collection and can do all the usual Recordset stuff.
0
 

Author Closing Comment

by:akohan
ID: 37785221
Thanks.
0

Featured Post

ScreenConnect 6.0 Free Trial

Want empowering updates? You're in the right place! Discover new features in ScreenConnect 6.0, based on partner feedback, to keep you business operating smoothly and optimally (the way it should be). Explore all of the extras and enhancements for yourself!

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

This tutorial explains how to create a series of drop-down lists that are dependent upon prior selections to guide (“force”) the user to make the correct selection and reduce data errors within Microsoft Excel. Excel 2010 was used for this tutorial;…
This article will guide you to convert a grid from a picture into Excel format using Microsoft OneNote and no other 3rd party application.
Graphs within dashboards are meant to be dynamic, representing data from a period of time that will change each time the dashboard is updated with new data. Rather than update each graph to point to a different set within a static set of data, t…
This Micro Tutorial demonstrate the bugs in Microsoft Excel for Mac with Pivot Charts.

803 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question