?
Solved

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

Posted on 2012-03-29
2
Medium Priority
?
248 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
2 Comments
 
LVL 17

Accepted Solution

by:
andrewssd3 earned 400 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

Independent Software Vendors: We Want Your Opinion

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

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

This code takes an Excel list of URL’s and adds a header titled “URL List”. It then searches through all URL’s in column “A”, looking for duplicates. When a duplicate is found, it is moved to the top of the list. The duplicate URL’s are then highlig…
Some code to ensure data integrity when using macros within Excel. Also included code that helps secure your data within an Excel workbook.
This Micro Tutorial will demonstrate in Google Sheets how to use the HYPERLINK function to create live links inside your spreadsheet.
Excel styles will make formatting consistent and let you apply and change formatting faster. In this tutorial, you'll learn how to use Excel's built-in styles, how to modify styles, and how to create your own. You'll also learn how to use your custo…

777 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