Information and Discounts for the latest Windows 7 Themes, Add-ons
Windows 7 Thems
Home Microsoft Windows 7 Themes Windows 7 Custom Themes Windows 7 Desktop Themes Windows 7 Hidden Themes Windows 7 Skins Windows 7 Tweaks Windows 7 Visual Styles Windows 8
 

programming

October 26, 2011

Learn2.com Programming In Visual C++ 5-Pack


Similarities between Excel VBA and Access VBA

In theory it should be easy to switch from one MS Office VBA programming language to another, since all the underlying principles are the same. It doesn't matter whether you're writing VBA macros within Access, Excel, Outlook, PowerPoint or Word, you're still using:

- objects, collections, methods and properties

- variables (the DIM statement)

- IF conditions and loops

- message boxes and input boxes

- subroutines and functions

In fact, the only thing which is different is the object and collections defined within the application. So how hard can it be to switch from (say) Excel VBA to Access VBA? The answer, sadly, is... fairly hard. Here's why!

Differences between Excel Visual Basic and Access Visual Basic

The main differences between the two programming languages are that Access supports two macro languages, doesn't support recording, has two different ways to create Visual Basic macros, hides a lot of its functionality in the DoCmd object and has two separate object models. If that didn't make much sense, worry not - the rest of this article will explain each of these points in turn.

Access has Two Macro Languages

This is a red herring. Microsoft Access has two separate languages for writing macros: one called macros, the other called either modules or Visual Basic. If you have any knowledge of VBA, you should ignore the first; it is provided for people who have no programming experience, and doesn't support proper looping, error-handling and many other structures. So although the Access database window contains a MACROS tab, you should ignore this completely!

Access doesn't Support Recording

Want to know how to colour a cell red with pink spots in Excel? If you can't guess the macro command (unlikely), you can just record a macro and have a look at the resulting code. This is a vital aide-memoire even when you're a VBA guru.

Access, on the other hand, doesn't support recording - not even in the latest version at the time of writing, Access 2010. This is, to say the least, a shame (interestingly, while Word supports VBA recording, PowerPoint doesn't any more: Microsoft removed the facility from version 2007 onwards). This means that you're often forced to resort to Google, Microsoft help or phoning a friend to find out how to do something in Access VBA.

Two Different Ways to Write Macros in Access

Want to create a VBA macro in Access? To do this, you need to go to the VBA code editor. Strangely, you can do this in two different ways: either press ALT + F11 as normal, or click on the Modules tab in the database window and choose to create a new module. Why are there two different ways to do the same thing? Historical reasons, we think.

Access Uses the DoCmd Object for Many Commands

Access VBA is complicated (or simplified?) by the fact that about half the commands begin with DoCmd. For example:

DoCmd.OpenForm - to open a form

DoCmd.Maximize - to maximise a window

Features like this make Excel a far more logical programming language than Access.

Access has Two Separate Object Models

Excel is pretty self-contained (although if you're creating your own dialog boxes, you'll be using a separate applications called Microsoft Forms). Access, however, splits into two almost equal parts:

- tables and queries are part of the Access database engine

- forms, reports, macros and modules are part of the Microsoft Access application

Although you'll probably only hit this complication when you get into advanced programming in Access, it's another Access feature to muddy the VBA water.

In summary, then, we'd say that Excel macros are far more straightforward than Access ones. Added to this is the fact that it's much quicker to learn Excel than it is to learn Access, and you get two unequal learning curves!

oqRZ4O xSHuc Learn2.com  Programming In Visual C++ 5 Pack

Learn2 Com Programming In Visual C 5 Pack Image

dRA4xNhrewxc Learn2.com  Programming In Visual C++ 5 Pack

Learn2 Com Programming In Visual C 5 Pack Photo

513PfTbG1TL. SL160 AA115  Learn2.com  Programming In Visual C++ 5 Pack

Learn2 Com Programming In Visual C 5 Pack Image

314PG0G721L. SL160 AA115  Learn2.com  Programming In Visual C++ 5 Pack

Learn2 Com Programming In Visual C 5 Pack Picture


Similar Products To Learn2 Com Programming In Visual C 5 Pack
Access 2007 VBA Programming For Dummies
C++ Common Knowledge: Essential Intermediate Programming
Visual Studio 2010 and .NET 4 Six-in-One (Wrox Programmer to Programmer)
Programming in Objective-C 2.0 (2nd Edition)
Programming in Objective-C (3rd Edition) (Developer''s Library)
Absolute Beginner's Guide to C (2nd Edition)
VB Strings - programming examples of enhanced string processing (Programming by Example - a fun & easy way to learn Visual Basic)

Tags: access, applications, basic, excel, macros, Microsoft, modules, programming, vba, visual, visual basic.

Filed under Programming Software by Ryan Stone on Oct 26th, 2011. #

1 2 3 4 5 Next »


More Resources Here!

Recent Posts

  • Software Test
  • Cisco 3725 Series Ios Ip
  • Ns/portfolio F/mainframe 3.1 Update Upgrade
  • Mediafour Macdrive 6 For Windows
  • Lego Pirates Of The Caribbean
  • Printmaster Platinum 2.0
  • Warhammer 40000 Dawn Of War Ii Chaos Rising
  • Exploring Creation With Physical Science
  • Emedia Guitar Songs 1 Version 2.0
  • Expansionpack For Logic
  • Advanced Rhino 4 Techniques – Training
  • Digidesign D-fi 1.5.1
  • Eurotalk Interactive – Talk Now! Learn Yoruba
  • Jumpstart World 2Nd Grade
  • Targus Water-resistant Backpack – For Up

Tags

adobe articles article submission business children chinese computer education email email marketing email newsletter excel ezine family free game games health history home homeschool kids language learn learning learn spanish math mathematics Microsoft Microsoft Word party powerpoint publishing reading rosetta stone school software spanish teaching training travel Vista windows writers writing
  • Microsoft Windows
  • Software Game
  • Lightbar 15 Led Media Highlighter System
  • Oxford Spanish
  • Dejection Powerpoint Templates |
  • Key Stage
  • Rgt Practice
  • Advantage Language
  • Carmen Sandiego
  • Voice Exam

Recent comments

  • » Blog Archive » Brand New Learning Company Dr. Seuss Kindergarten Over 250 Lessons Over 200 Fun Animations on Seuss Kindergarten
  • Dhananjay on Windows 7 Skins
  • simple modern design of houses in the philippines - ALL ASIA – ALL ASIA on Design Home

Newly released Deals


Check out the recent deals




Lot 3 Where in the WORLD USA MATH is Carmen SanDiego computer pc game XP Vista
Lot 3 Where in the WORLD USA MATH is Carmen SanDiego computer pc game XP Vista
US $6.95
Lot 5 Carmen SanDiego Where World USA Math Think Word computer pc games XP Vista
Lot 5 Carmen SanDiego Where World USA Math Think Word computer pc games XP Vista
US $12.95
Princeton Review BODY WORKS 60 Human Anatomy NEW PC CD
Princeton Review BODY WORKS 60 Human Anatomy NEW PC CD
US $7.22
Where in the World is Carmen San Diego Works with Windows Vista XP computer pc
Where in the World is Carmen San Diego Works with Windows Vista XP computer pc
US $2.95
CD Where in WORLD is Carmen Sandiego Kids PC Game NEW
CD Where in WORLD is Carmen Sandiego Kids PC Game NEW
US $5.99
DK Childrens Encyclopedia Age 6 14 PC CD NEW SLV
DK Childrens Encyclopedia Age 6 14 PC CD NEW SLV
US $9.98
LEARN 2 To FISH Kids CHILDRENS Fishing SOFTWARE Learning EDUCATIONAL Game CD ROM
LEARN 2 To FISH Kids CHILDRENS Fishing SOFTWARE Learning EDUCATIONAL Game CD ROM
US $13.19
Reader Rabbit TODDLER 20 MY BABY JOURNAL CD Bundle
Reader Rabbit TODDLER 20 MY BABY JOURNAL CD Bundle
US $10.22
Where in the USA is Carmen San Diego works with Windows Vista computer pc game
Where in the USA is Carmen San Diego works with Windows Vista computer pc game
US $1.95
Adventure Workshop 8 4th 6th Grade
Adventure Workshop 8 4th 6th Grade
US $16.99
Word Munchers Reading Vocabulary Phonics PC Mac new CD
Word Munchers Reading Vocabulary Phonics PC Mac new CD
US $5.49
LIFE IN FOCUS LIFE SKILLS CD SOFTWARE PICTURE WORD ASSO
LIFE IN FOCUS LIFE SKILLS CD SOFTWARE PICTURE WORD ASSO
US $17.99
BodyWorks 6 Body Works Human Anatomy Health PC CD
BodyWorks 6 Body Works Human Anatomy Health PC CD
US $13.48
New Kidspiration 3 Software Single Box
New Kidspiration 3 Software Single Box
US $69.00
New Kidspiration 3 Software School Site License Gr K 5
New Kidspiration 3 Software School Site License Gr K 5
US $995.00
Isaac Asimov The Ultimate Robot PC CD
Isaac Asimov The Ultimate Robot PC CD
US $17.98
Carmen Sandiego Collection  Word Math Time USA World
Carmen Sandiego Collection Word Math Time USA World
US $14.99
Carmen Sandiego WORLDRugratsStitch 4 Win XP Games NEW
Carmen Sandiego WORLDRugratsStitch 4 Win XP Games NEW
US $13.20
Adventure Workshop 6 4th 6th Grade 4 Titles 8 12 for Windows 98 ME 2000 XP NIB
Adventure Workshop 6 4th 6th Grade 4 Titles 8 12 for Windows 98 ME 2000 XP NIB
US $11.95
QuickStudy English Grammar
QuickStudy English Grammar
US $22.01
AFTER SCHOOL CLUBHOUSE 5th 6th Grade Brand New in Box
AFTER SCHOOL CLUBHOUSE 5th 6th Grade Brand New in Box
US $7.99
Where in the World is Carmen Sandiego Acceptable
Where in the World is Carmen Sandiego Acceptable
US $2.25
Virtual Laboratory PC CD ROM
Virtual Laboratory PC CD ROM
US $2.99
Discover Great Britain from GSP history culture travel Windows 98 95 ME XP NEW
Discover Great Britain from GSP history culture travel Windows 98 95 ME XP NEW
US $5.95
Where in the USA is Carmen SanDiego New in Box
Where in the USA is Carmen SanDiego New in Box
US $5.98
PRINTSHOP ZOOM EASY PHOTOEDITING BRAND NEW SEALED
PRINTSHOP ZOOM EASY PHOTOEDITING BRAND NEW SEALED
US $8.15

Recent Comments

  • » Blog Archive » Brand New Learning Company Dr. Seuss Kindergarten Over 250 Lessons Over 200 Fun Animations on Seuss Kindergarten
  • Dhananjay on Windows 7 Skins
  • simple modern design of houses in the philippines - ALL ASIA – ALL ASIA on Design Home
  • Shirt Abc Blog on Speak Language

Spam Blocked

693 spam comments blocked by
Akismet
Home Contact Privacy Sitemap Sitemap Welcome
Copyright Windows 7 Thems, 2012
Made with an easy to customize WordPress theme • Boxed, Blue skin by Denis de Bernardy