Wrox Programmer Forums
|
VB Databases Basics Beginning-level VB coding questions specific to using VB with databases. Issues not specific to database use will be redirected to other forums.
Welcome to the p2p.wrox.com Forums.

You are currently viewing the VB Databases Basics section of the Wrox Programmer to Programmer discussions. This is a community of software programmers and website developers including Wrox book authors and readers. New member registration was closed in 2019. New posts were shut off and the site was archived into this static format as of October 1, 2020. If you require technical support for a Wrox book please contact http://hub.wiley.com
 
Old July 9th, 2007, 02:42 PM
Registered User
 
Join Date: Jul 2007
Posts: 3
Thanks: 0
Thanked 0 Times in 0 Posts
Default Macros vs VB

I am building a database in Access. I have tried both macros and vb language. Can't decide which is better. Any ideas one way or the other, anyone?

Ophelia

kmac
 
Old July 9th, 2007, 04:05 PM
Friend of Wrox
 
Join Date: Nov 2004
Posts: 1,621
Thanks: 1
Thanked 3 Times in 3 Posts
Default

You will find almost everyone here prefers VBA. It gives you much more versatile control over what is being done, permits single-stepping through the code to examine what is taking place, and is the only way to incorporate error handling.

It is a useful tool from time-to-time to create a macro then convert it to a procedure, causing Access to reveal the VBA code that does what the macro was written to do. This can be pretty educational!

You cannot loop through records with a macro, so if you need to do that, you are really painted into the VBA corner--it’s your only option.





Similar Threads
Thread Thread Starter Forum Replies Last Post
Saving Macros develop in VB as add-in in FrontPage RiteshKarkele Pro VB 6 0 August 7th, 2007 03:12 AM
Distributing Macros Larry Landis Word VBA 1 March 31st, 2006 02:29 PM
Enable - Macros alannoble26 Excel VBA 2 November 28th, 2005 09:08 AM
Copy excel macros to vb project battlebob Excel VBA 2 November 9th, 2004 10:13 AM
Macros vbprogwb Access VBA 21 November 12th, 2003 05:18 PM





Powered by vBulletin®
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.
Copyright (c) 2020 John Wiley & Sons, Inc.