Wrox Programmer Forums
Go Back   Wrox Programmer Forums > Microsoft Office > Access and Access VBA > Access VBA
|
Access VBA Discuss using VBA for Access programming.
Welcome to the p2p.wrox.com Forums.

You are currently viewing the Access VBA section of the Wrox Programmer to Programmer discussions. This is a community of software programmers and website developers including Wrox book authors and readers. New member registration was closed in 2019. New posts were shut off and the site was archived into this static format as of October 1, 2020. If you require technical support for a Wrox book please contact http://hub.wiley.com
 
Old August 14th, 2004, 11:42 PM
Authorized User
 
Join Date: Jun 2003
Posts: 54
Thanks: 2
Thanked 0 Times in 0 Posts
Default Programmatically obtaining info on macros


I have problems with importing macros (and other objects) from another db and finding that a macro, somehow refers to a non-existent field, expression, table, etc. It would be nice to have a routine that examines all macros for the text string that you suspect is missing.

Short of buying a copy of "Speed Ferret", is there any way to have a VBA procedure cycle through all macros and retrieve any useful information about each of them?

I know that you can do something like the following:

-- (the syntax may be off ... I am doing this from memory:

Dim obj as AccessObject
dim dbs as Access.Application

Set dbs = Application.CurrentProject

For Each obj in dbs.AllMacros
     Debug.Print obj.Name
next obj

etc.
---------------

What I don't know is what other info you can retrieve from a macro such as: Date Created, Date Modified, Conditional Expression, Action, Arguments, etc.

Can you suggest a method?



--- Tom
__________________
--- Tom





Similar Threads
Thread Thread Starter Forum Replies Last Post
obtaining handle of the window C# nirmal_thapa C# 0 January 30th, 2007 09:10 AM
Obtaining User Logon dearnne Access 1 September 2nd, 2004 01:39 PM
Programmatically obtaining info on Excel DLL's tcarnahan Excel VBA 0 August 14th, 2004 11:45 PM
Obtaining information from a form Ashleek007 PHP How-To 1 March 1st, 2004 09:51 PM
Obtaining a variable from the first letter... starsol Beginning PHP 3 August 18th, 2003 01:49 PM





Powered by vBulletin®
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.
Copyright (c) 2020 John Wiley & Sons, Inc.