Solved

Need good learning source for Progression VBA - Macola Flexibility Module

Posted on 2004-09-17
6
895 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
  • 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
Enabling OSINT in Activity Based Intelligence

Activity based intelligence (ABI) requires access to all available sources of data. Recorded Future allows analysts to observe structured data on the open, deep, and dark web.

 

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

Top 6 Sources for Identifying Threat Actor TTPs

Understanding your enemy is essential. These six sources will help you identify the most popular threat actor tactics, techniques, and procedures (TTPs).

Join & Write a Comment

Introduction I needed to skip over some file processing within a For...Next loop in some old production code and wished that VB (classic) had a statement that would drop down to the end of the current iteration, bypassing the statements that were c…
Introduction While answering a recent question about filtering a custom class collection, I realized that this could be accomplished with very little code by using the ScriptControl (SC) library.  This article will introduce you to the SC library a…
Get people started with the utilization of class modules. Class modules can be a powerful tool in Microsoft Access. They allow you to create self-contained objects that encapsulate functionality. They can easily hide the complexity of a process from…
Show developers how to use a criteria form to limit the data that appears on an Access report. It is a common requirement that users can specify the criteria for a report at runtime. The easiest way to accomplish this is using a criteria form that a…

708 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

Need Help in Real-Time?

Connect with top rated Experts

18 Experts available now in Live!

Get 1:1 Help Now