Solved

Need good learning source for Progression VBA - Macola Flexibility Module

Posted on 2004-09-17
6
988 Views
Last Modified: 2013-12-25
We recently installed the Flexibility add-on for Macola Progression.  This allows you to add functionality through VBA.  We also use a SQL 2000 server for the databases.  I had been trying to do some record navigation using ADO, but the more I struggled the more I realized that there is a big difference (limitation?) between VBA and VB.  I found this after I opened Visual Studio 6 and found options/methods/properties not available to me in Progression VBA for Flexibility.

Does anyone know of a good source for learning VBA/ADO?  Or is there a better method than ADO for data manipulation?  I have pleanty of VB sources, but I need something more specific to my situation.  Any help is appreciated.  Thanks.

~bruno71
0
Comment
Question by:bruno71
[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
  • 3
  • 3
6 Comments
 
LVL 29

Expert Comment

by:leonstryker
ID: 12086860
There little to no difference between VB and VBA in terms of ADO.  What differences specifically do not see?

Leon
0
 

Author Comment

by:bruno71
ID: 12112569
For example...

I open Visual Studio and add a "Microsoft ADO Data Control 6.0 (SP4) (OLEDB)" control to a form.  Then I add a text box.  The text box has properties such as DataField, DataFormat, DataMember, and DataSource which are used to bind it to the datasource specified with the ADO control.

However, when using VBA in Flexibility, I repeat the same process but the text box does not have those properties available.  I can add the ADO control, but I can't bind the text boxes to it.

~bruno71  
0
 
LVL 29

Accepted Solution

by:
leonstryker earned 125 total points
ID: 12112640
bruno71,

You should not be using that in the first place.  All you need is to establish a reference to Microsoft ActiveX Data Objects 2.x Library and use ADO directly.

Dim cnConn As ADO.Connection
Dim rsRecSet As ADO.Recordset

Once you retrieve the recordset you can display the information in your controls.

Leon
0
Revamp Your Training Process

Drastically shorten your training time with WalkMe's advanced online training solution that Guides your trainees to action.

 

Author Comment

by:bruno71
ID: 12112898
That's what I'm doing now...but I was just wondering if there were any good resources for using VBA/ADO like this.  Anything I've found deals with VB and the ADO control.

~bruno71
0
 
LVL 29

Expert Comment

by:leonstryker
ID: 12113055
There are of course differences between VB and VBA, since VBA is a subset of VB, but they are not great.  As you discovered there are differences in the controls, however different applications, which use VBA, may have differences in controls as well.  Any book on VBA would be specific to the application which hosts it.

if you really want a book or something, you should look for tech support/white papers concerning your specific application Macola Progression.  There should be a chapter somewhere on ADO, but I expect not a big one.

Leon
0
 

Author Comment

by:bruno71
ID: 12113605
This is the only real reference I've found to Macola and VBA.

http://www22.inetba.com/ibs7/filecabinet/macolapdf/flex.pdf

Everything else is focused on MS Office VBA.  Oh well...I guess I can take what I've got and try to figure it out myself:)  Thanks for your help.

~bruno71
0

Featured Post

Industry Leaders: 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 article describes some techniques which will make your VBA or Visual Basic Classic code easier to understand and maintain, whether by you, your replacement, or another Experts-Exchange expert.
Since upgrading to Office 2013 or higher installing the Smart Indenter addin will fail. This article will explain how to install it so it will work regardless of the Office version installed.
As developers, we are not limited to the functions provided by the VBA language. In addition, we can call the functions that are part of the Windows operating system. These functions are part of the Windows API (Application Programming Interface). U…
This lesson covers basic error handling code in Microsoft Excel using VBA. This is the first lesson in a 3-part series that uses code to loop through an Excel spreadsheet in VBA and then fix errors, taking advantage of error handling code. This l…

707 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