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 9141951
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 17, 20262026-06-17T09:42:48+00:00 2026-06-17T09:42:48+00:00

I took a already set up database from the Office.com templates (File –> New

  • 0

I took a already set up database from the Office.com templates (File –> New –> Office.com Templates), since this template already gave me 80% of my requirements.

I then changed the last 20% of this template where I came into the following: It seems as this template is a web database. I am not sure about the differences of a web database and a normal database in Access at all but I did find out, they do not allow me to run VBA code. At least not when I am trying to call it by an event.

Is there any way to achieve this anyways? Or are there possibly any other ways, such as converting the web database into a normal one perhaps?

  • 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-06-17T09:42:48+00:00Added an answer on June 17, 2026 at 9:42 am

    Actaully, you can call VBA code from the forms event code. However, it requires a bit of a kluge.

    However, you don’t need to do this in your case.

    Do note that you can create client objects and use client VBA code in your web application.

    This means you can add/mix VBA forms into that application (these client objects of course cannot run in a web brwoser, but they can be used the client).

    Suggestion #1:
    to hide record navigation buttons.

    Open the web form in layout mode. Move a object (dirty the design).

    Whack ctrl-g for VBA command prompt. Type in this:

    forms(0).NavigationButtons = False
    

    Now, save the form. The record navigation setting will be saved with the form.

    Suggestion #2:
    Open the web form with VBA. Use this code:

    DoCmd.OpenForm "AssetsDetails"
    Forms("AssetsDetails").NavigationButtons = False
    

    Suggestion #3:
    Call VBA code from the forms load event. This is a bit of kluge, but does work:

    In the forms open event, place this macro code:

    OpenForm (frmRunVBA,,,Dialog)
    

    Note that in above WEB MACRO editor the VBA form above called frmRunVBA does NOT appear in the drop down choice list – but you CAN TYPE/force in the name – this is legal.

    Now create a VBA form called frmRunVBA). In the forms load event, palce this code:

    Private Sub Form_Load()
    
       Forms("AssetDetails").NavigationButtons = False
       DoCmd.Close acForm, Me.Name
    
    End Sub
    

    So you can call VBA code, but you really don’t need to if you use tip#1.

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

Sidebar

Related Questions

I took the example code from the Kendo UI demos at http://demos.kendoui.com/web/grid/remote-data.html , binding
I took the rendered page from the SWT Browser and exported it to an
I took the standard Item GridView template and modified it a bit to fit
I took a look at this answer and it goes in part to solving
I have an Ajax-enabled CRUD application. If I display a record from my database
We're implementing a new solution in our classic ASP environment that's using COM interop
This is a theoretical question, I've already got a solution to my problem that
I downloaded the VS2010 CTP from here: http://www.microsoft.com/downloads/details.aspx?FamilyId=922B4655-93D0-4476-BDA4-94CF5F8D4814&displaylang=en It took a while to download
I've been using ZF2 since alpha so I'm not entirely new. However not to
This took me by surprise… Seems that you can’t use the same name for

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.