Solved

VB vs. VBA - dumb question; please humor me

Posted on 2010-09-24
7
456 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
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!

 
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

Online Training Solution

Drastically shorten your training time with WalkMe's advanced online training solution that Guides your trainees to action. Forget about retraining and skyrocket knowledge retention rates.

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

733 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