Hi, I do a lot of Macros in Access. I do the drag and drop version, I do not do any VB Code. Currently, I use Macros to run all my queries. I want to be able to automatically update the "Comment" field in the Macro with the information from the "Action Arguments". For example, my Action is OpenQuery, the Action Arguments contain Query Name as qryActiveContac ts. I want the words "qryActiveConta cts" to be in the Comment field. If there is code for this, I can copy and paste code into a module, then run it that way. thanks in advance.
2 2156
Hi, I do a lot of Macros in Access. I do the drag and drop version, I do not do any VB Code.
Is this a 12 step program confessional statement?? :-)
Just kidding, actually... I don't think what you are asking for is possible, sorry! The comment section of the macro window is for 'comments' and has no bearing in any code or action taken by the database, so therefore there would be very little incentive for MS to make it available through code.
Sorry to be the bearer of bad news, but you'll have to dust off the typing skills if you want those fields populated.
Regards,
Scott
ADezii 8,834
Recognized Expert Expert
Hi, I do a lot of Macros in Access. I do the drag and drop version, I do not do any VB Code. Currently, I use Macros to run all my queries. I want to be able to automatically update the "Comment" field in the Macro with the information from the "Action Arguments". For example, my Action is OpenQuery, the Action Arguments contain Query Name as qryActiveContac ts. I want the words "qryActiveConta cts" to be in the Comment field. If there is code for this, I can copy and paste code into a module, then run it that way. thanks in advance.
Here are some typical Properties that a Macro will expose along with their Values, in this case, the AutoExec Macro. As you can see, not too much to work with, - Dim intCounter As Integer
-
-
Debug.Print "======================"
-
For intCounter = 0 To CurrentDb.Containers("Scripts").Documents("AutoExec").Properties.Count - 1
-
Debug.Print CurrentDb.Containers("Scripts").Documents("AutoExec").Properties(intCounter).Name
-
Debug.Print CurrentDb.Containers("Scripts").Documents("AutoExec").Properties(intCounter).Value
-
Debug.Print
-
Next
-
Debug.Print "======================"
OUTPUT: - ======================
-
Name
-
AutoExec
-
-
Owner
-
admin
-
-
UserName
-
admin
-
-
Permissions
-
1048575
-
-
AllPermissions
-
1048575
-
-
Container
-
Scripts
-
-
DateCreated
-
8/11/2007 9:25:40 PM
-
-
LastUpdated
-
8/11/2007 9:25:40 PM
-
-
======================
Sign in to post your reply or Sign up for a free account.
Similar topics |
by: Dan |
last post by:
Could someone please help me with auto importing a series of data
files into an Access table. I tried to follow code given below in a
previous messagebut i'm getting error messages.
Here's my database stats:
Path: C:\Database (contains the database and all the text files to
be imported)
Text files to import: (SampleData4.txt and SampleData3.txt as testing
examples)
|
by: samuel |
last post by:
Hi
I wrote a macro in MS Access 2000.
This is a .adp link on SQL server tables.
I have 2 forms: script_selection & Form3
Form3 include 2 important fields: CD & line
I want to write a macro who will be run when I click on a field (line) in
|
by: paul.hanti |
last post by:
This board has been a plethora of information. Thanks to all that
respond!
I have a quick question regarding the built-in OutputTo macro. I've
built a shared database in Access 2003 (in Access 2000 file format)
that resides on a shared network drive. This OutputTo macro is
essentially setup to export one small table to an Excel spreadsheet
once a user clicks a command button on the switchboard. Another user
and I (both of us have...
|
by: Nick M |
last post by:
Hello All,
Excellent info here Thanks!
I am very new to using access in general and I am on a learning curve.
I'm trying to import an excel workbook (with worksheets) into an access db
via a macro. (I'll get to using VB later on).
What I would like to do is import a single workbook w/three seperate
worksheets into three seperate access tables AND truncate the time stamp
that is used in the excell sheet via a macro.
|
by: John |
last post by:
Hi,
I would like to update my form after something is intered into a textbox in
real time.
For instance, Box A has a blank entry and I enter in 5. Box B I enter in 6
so in Box C it should automatically give me 11 (if the code I put in is to
add box A and B). Then in Box D I put in 3 (say to subtract from A and B
combined) so then Box C adjusts to give me 8.
| |
by: He Shiming |
last post by:
Hi All,
In my COM (component object model) server DLL I created, there are these
methods that require buffer allocation. They look like this:
class CComClass : public IClass { // just for demonstration
public:
HRESULT Method (long lParam1, long lParam2, unsigned char* pBufferOut,
long * plSizeOut);
};
|
by: S.Dickson |
last post by:
I had an access database that i use as an ordering system. I have a
form for entering customer details. When i add a new customer on the
form the customer number is an auto number that appears when i type in
the details.
I have just moved over to mysql server with access as the front end. I
have setup the sql tables with the customer number as autonumber.
When i go into the form and add a new customer it does not generate the
|
by: mdh |
last post by:
I have asked a few questions about Macros...and think what I have been
missing ...and which all who have replied clearly understand...is that
this is a Pre-processor action.
Hopefully the above is true.
So, could someone look at this code, and help me understand why I get
this error.
#include <stdio.h>
|
by: awojciehowski |
last post by:
Greetings:
I have been working on a database and have found a peculiar error.
When I open up my database and choose a form called "add inventory", then click on "view reports" and then, finally, double click on a report to view it shows up correctly.
However, I have created a search form that does not allow any changes but view/read only. I have the identical command to "view reports" as the "add inventory" form. When I click on the...
|
by: marktang |
last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look !
Part I. Meaning of...
|
by: Hystou |
last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it.
First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
| |
by: Oralloy |
last post by:
Hello folks,
I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>".
The problem is that using the GNU compilers, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed.
This is as boiled down as I can make it.
Here is my compilation command:
g++-12 -std=c++20 -Wnarrowing bit_field.cpp
Here is the code in...
|
by: jinu1996 |
last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth.
The Art of Business Website Design
Your website is...
|
by: Hystou |
last post by:
Overview:
Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
|
by: tracyyun |
last post by:
Dear forum friends,
With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
|
by: agi2029 |
last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own....
Now, this would greatly impact the work of software developers. The idea...
|
by: TSSRALBI |
last post by:
Hello
I'm a network technician in training and I need your help.
I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs.
The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols.
I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
| |
by: 6302768590 |
last post by:
Hai team
i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
| |