Topics Search

Modules & Macros

Modules & Macros
Views: 52
Once you exit out of Microsoft Visual Basic window (as you did in the previous article), you will be back in the MS Access Module section where you can see the name of your module. Underneath this name there is same code. To access the code window again or in other words to open 'auto_login' module in MS Visual Basic window.
Sponsored Links:

More topics

 

Modules vs Class Modules in COM

Preview
Is it ok to use Modules in VB COM project ? I see most information talks about class modules and nothing about Modules. I want to create a module that handles all my ADO and use class modules to access the Module'
 

Automate applications with macros in Access 2007

Preview
If you have been using Access in the past, the easiest way to automate the tasks would have been by using the macros. On the other hand, programmers might have realized that writing VBA (visual basic for applications) modules is the best way to automate things in any Access database.
Access 2007 makes it very easy to create macros. In previous versions, many macros could not have been created without using VBA code but in Access 2007 new features have been added to eliminate the need of using VBA code.
 

Creating Modules and Macros

Preview
For Visual Basic programmers, Modules object under the Objects group provides the coding ability. Its because of this Modules you can automate certain tasks that you have to do manually e.g. if you have Linked tables in your MS Access database pointing to Oracle Database, every time you open the database, the login/password screen pops up. Utilizing the Visual Basic coding environment in MS Access, you can automate the login to Oracle Server (or MS SQL Server).
 

Using Northwind DB template and modifying but getting errors

Preview
Could someone please help me with streamlining Northwind DB for my use? I imported some of the queries and setup similar tables and imported all of the modules/macros. But I only need to be able to enter customers, products and order. I don't need the whole inventory, shippers, purchase orders part.

But now when I go to do something like add a new order, some things don't work, like selecting a customer. ex. when I try to add a new order and select the customer drop down arrow I get the message "The record source '~sq_cOrder Details~sq_cCustomer ID' specified on this form or report does not exist." Or if I want to view an invoice, it wants shippinginformation.

Maybe I should cut out some of the macros/modules but don't know enough to do that correctly.
 

How to remove MACROS message in word. it comes at opening & closing of Microsoft word

Preview
The Message is like:
"The Macros in this project are disabled. Pls. refer to the online help or documentation of the host application to determine how to enable macros
 

Exporting Multiple Objects

Preview
I want to cycle thru each object (all tables,forms,queries,macros & modules) in my database and export it to another database keeping the same name for the object. I know how to export 1 object at a time but I can't figure out how to cycle thru the object collections. Does anyone know how I should accomplish this?
 

Access 2007 Macros & Trust Issue

Preview
I converted a database from Access 2003 to 2007 and now the macros do not work. I have made sure that it is in a trusted location. I have selected "enable all macros". The message bar is supposed to pop up, but I have never seen it.

The error on the macros says that steps won't work if the database is not trusted.
 

How to export macros' commands as text?

Preview
I'm trying to devise a way to export code in an Access database as text such that I can use Csv meaningfully when I make changes. reports and modules, butalso the connection strings and SQL commands for queries, and the list of commands in all macros.

I've done all the VBA and queries, but I can't figure out how to get to macros' commands at all. I've examined all containers and documents in CurrentProject, all the Access objects in CurrentData, everything, and I can't find anything.

All I can do is save each macro as a module and then use the module-VBA system I have.
 

What is the point of different modules?

Preview
I am trying to understand what the point of different modules is. Is it just an organization thing?

If I take a function and move it to a new modules will there be errors? Anything I need to watch out for
 

query objects in VB6

Preview
in ms access, we have objects created in the TABLE, QUERIES, FORMS, REPORTS, PAGES, MACROS, AND MODULES.

In VB6, I am not sure if there is a panel where we can create query objects and macros.

Does VB6 have that query object panel? if not, is there a way for that to appear or to have there