Solved

VB vs. VBA - dumb question; please humor me

Posted on 2010-09-24
7
447 Views
Last Modified: 2012-05-10
I am a longtime VBA developer with advanced skills, but my experience with VB is very limited. What's the quickest way for me to learn to work with queries and tables in VB? I need to create an executable that will perform actions similar to those already implemented in a MSAccess app so it can run as part of a process on a server where MSOffice/Access is not installed.
0
Comment
Question by:dgmoore1
7 Comments
 
LVL 92

Expert Comment

by:Patrick Matthews
ID: 33755345
The very first thing to do: make sure that you are learning VB.Net and not VB6.  Despite the similar names, they are very different beasts :)
0
 

Author Comment

by:dgmoore1
ID: 33755352
I'm even less experienced with VB .net, alas...
0
 
LVL 33

Expert Comment

by:jppinto
ID: 33755401
The quickest way to learn VB is to start using it! :)

Install Visual Studio and buy a beginner book and start making something. You will have some doubts, some questions, that you can post for instance here at EE. The book will help you understand the principles of VB .Net. With a bit of practise you will see that it's not so hard to make the jump from VBA.

jppinto
0
NAS Cloud Backup Strategies

This article explains backup scenarios when using network storage. We review the so-called “3-2-1 strategy” and summarize the methods you can use to send NAS data to the cloud

 
LVL 10

Expert Comment

by:3_S
ID: 33755410
Do you already use ADO in VBA?
Then there is no much difference between VBA and VB6. Only in making the connection to you database

Some questions
Do you want to use early or late binding?
Do you want to use as DSN?

If you don't know what this mean just ask.
Then I can give an example code. Or you could post a part of you VBA code you want in VB.
0
 
LVL 16

Accepted Solution

by:
carsRST earned 500 total points
ID: 33755415
I'm unclear on your overall goal.  If it's to learn VB job reasons, then do what matthewspatrick says.  

If you have been given a task, the quickest way, given your skill set, is to create a VBS script.  Just use ADO to connect to your access database.  You do not have to have Access installed from where it's run.
0
 

Author Closing Comment

by:dgmoore1
ID: 33755627
I think this might be my best approach
0
 

Author Comment

by:dgmoore1
ID: 33755630
I mean to use VBScript, that is...
0

Featured Post

3 Use Cases for Connected Systems

Our Dev teams are like yours. They’re continually cranking out code for new features/bugs fixes, testing, deploying, testing some more, responding to production monitoring events and more. It’s complex. So, we thought you’d like to see what’s working for us.

Question has a verified solution.

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

Suggested Solutions

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…
If you need to start windows update installation remotely or as a scheduled task you will find this very helpful.
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…
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…

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