Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 379321
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 12, 20262026-05-12T14:52:49+00:00 2026-05-12T14:52:49+00:00

I’m wondering about some ideas which can improve process of designing solutions using Access

  • 0

I’m wondering about some ideas which can improve process of designing solutions using Access and VBA programming language. Of course I’m not talking about best programming practices in general, but only these directly related to Access and VBA.

Everybody knows, that VBA has poor object-oriented programming support, there is no inheritance, polymorphism and so on. So how to ensure DRY and KISS at one time? There are some solutions how to implement common in other languages patterns and strategies in VBA, but frankly speaking, they are often overcomplicated. Which of those are worth to implement?

Before I start a new Access project (if any 😉 ), I wish to gather collection of best practices, because from my experience I know that with VBA in Access (and with Access in itself) it’s very challenging to avoid bad design concepts and to end with messy, unreadable and repeated multiple times code.

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-12T14:52:50+00:00Added an answer on May 12, 2026 at 2:52 pm

    I’d like to add here some other questions and answers related in a way or another to the same issue. The pointers might lead to my own answer to these questions, but do not hesitate to browse other’s answers!

    MS Access as enterprise software

    Best way to test an MS-Access application

    Working with multiple programmers on MS-Access

    Recommendations on using SQL server GUIDS from MS-Access

    I must admit that one of the main constraints of Access is the limited object model. I was specifically annoyed by the lack of possibilities to add my own properties and methods to the Form object. I recently found an efficient turnaround to this problem by creating 2 extra objects:

    • the “AllMyForms” object,
      which in fact maintain 2 object collections: one is the standard Access forms collection, the other one is a collection of all the instances of the “customForm” object. Both collections are indexed with the hwnd property of an opened form (or, to be more specific, the hwnd property of the instance of a form, allowing me to open multiple instances of the same form).

    • the “customForm” object,
      which lists my custom properties and methods of a form’s instance

    In this way, I can refer to properties such as:

    accessForms:referring to the standard properties and methods

    AllMyForms.accessForm(hwnd).name
    

    refers to the .name property of the access form through its .hwnd value

    By the way, the following debug.print will then give me the same result:

    ? screen.ActiveForm.name
    ? AllMyForms.accessForm().name   'default value for hwnd is screen.activeForm.hwnd'
    

    Custom forms:properties

    AllMyForms.customForm(hwnd).selectClause
    

    will refer to the SELECT clause used to create the underlying recordset of the form’s instance

    Custom forms:methods

    The .agregate method, available for a customForm object, will calculate the sum/min/max/avg of a form “column” (ie sum of values for a control in a continuous form):

    AllMyForms.customForm().agregate("lineAmount","sum")
    

    Will give me the sum of all “lineAmount” values displayed on the current/active instance of a form.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

link Im having trouble converting the html entites into html characters, (&# 8217;) i
Does anyone know how can I replace this 2 symbol below from the string
That's pretty much it. I'm using Nokogiri to scrape a web page what has
I have just tried to save a simple *.rtf file with some websites and
I have some data like this: 1 2 3 4 5 9 2 6
I'm parsing an RSS feed that has an ’ in it. SimpleXML turns this
We're building an app, our first using Rails 3, and we're having to build
I'm making a simple page using Google Maps API 3. My first. One marker
I have text I am displaying in SIlverlight that is coming from a CMS
Seemingly simple, but I cannot find anything relevant on the web. What is the

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.