?
Solved

Need good learning source for Progression VBA - Macola Flexibility Module

Posted on 2004-09-17
6
Medium Priority
?
1,024 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 375 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
Concerto's Cloud Advisory Services

Want to avoid the missteps to gaining all the benefits of the cloud? Learn more about the different assessment options from our Cloud Advisory team.

 

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

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

There are many ways to remove duplicate entries in an SQL or Access database. Most make you temporarily insert an ID field, make a temp table and copy data back and forth, and/or are slow. Here is an easy way in VB6 using ADO to remove duplicate row…
If you have ever used Microsoft Word then you know that it has a good spell checker and it may have occurred to you that the ability to check spelling might be a nice piece of functionality to add to certain applications of yours. Well the code that…
Get people started with the process of using Access VBA to control Excel using automation, Microsoft Access can control other applications. An example is the ability to programmatically talk to Excel. Using automation, an Access application can laun…
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…
Suggested Courses

650 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