473,427 Members | 1,612 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,427 software developers and data experts.

Auto Update Macro Comments with Action Arguments

1
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 qryActiveContacts. I want the words "qryActiveContacts" 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.
Aug 28 '07 #1
2 2133
Scott Price
1,384 Expert 1GB
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
Aug 29 '07 #2
ADezii
8,834 Expert 8TB
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 qryActiveContacts. I want the words "qryActiveContacts" 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,
Expand|Select|Wrap|Line Numbers
  1. Dim intCounter As Integer
  2.  
  3. Debug.Print "======================"
  4. For intCounter = 0 To CurrentDb.Containers("Scripts").Documents("AutoExec").Properties.Count - 1
  5.   Debug.Print CurrentDb.Containers("Scripts").Documents("AutoExec").Properties(intCounter).Name
  6.   Debug.Print CurrentDb.Containers("Scripts").Documents("AutoExec").Properties(intCounter).Value
  7.     Debug.Print
  8. Next
  9. Debug.Print "======================"
OUTPUT:
Expand|Select|Wrap|Line Numbers
  1. ======================
  2. Name
  3. AutoExec
  4.  
  5. Owner
  6. admin
  7.  
  8. UserName
  9. admin
  10.  
  11. Permissions
  12.  1048575 
  13.  
  14. AllPermissions
  15.  1048575 
  16.  
  17. Container
  18. Scripts
  19.  
  20. DateCreated
  21. 8/11/2007 9:25:40 PM 
  22.  
  23. LastUpdated
  24. 8/11/2007 9:25:40 PM 
  25.  
  26. ======================
Aug 29 '07 #3

Sign in to post your reply or Sign up for a free account.

Similar topics

1
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...
0
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...
1
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...
8
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...
1
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...
0
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...
3
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...
16
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...
1
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,...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
marktang
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,...
0
jinu1996
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...
1
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...
0
tracyyun
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...
0
agi2029
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,...
0
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...
0
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.