Hi,
I've made a mess of a report. I need to do some cleanup and I need a utility to help me look at all the objects on the report.
I used to have some code for listing all the objects on a report and selectively list properties of that report. I cannot find the code and I am unable to find the posting that provided it.
can anyone help me out?
Basically, I want to pass a report name to a function, and return all the objects on that report and specific property values for each of those objects.
Thanks!
4 1700 ADezii 8,834
Recognized Expert Expert
I wrote this code minutes before going to bed, it can easily be incorporated into a Function: - On Error Resume Next
-
-
Dim ctl As Control
-
Dim rpt As Report
-
Dim prp As Property
-
-
DoCmd.OpenReport "rptEmployees2", acViewDesign, , , acHidden
-
-
Set rpt = Reports("rptEmployees2")
-
-
For Each ctl In rpt.Controls
-
Debug.Print ctl.Name
-
For Each prp In ctl.Properties
-
Debug.Print " |-- " & prp.Name & " ==> " & prp.Value
-
Next
-
Next
Sample OUTPUT: ADezii 8,834
Recognized Expert Expert
Oops, forgot to Close the Report after interrogating it. Add this single line of code after the last line (#16): - DoCmd.Close acReport, "rptEmployees2", acSaveNo
Thanks! That is just what I needed.
I just pulled the code into a function and passed it my report name. instead of debug.print... I passed the string to a generic function I have for appending to a table.
ADezii 8,834
Recognized Expert Expert
Thanks! That is just what I needed.
I just pulled the code into a function and passed it my report name. instead of debug.print... I passed the string to a generic function I have for appending to a table.
Glad you got what you asked for.
Sign in to post your reply or Sign up for a free account.
Similar topics |
by: Mike Wiseley |
last post by:
I would like to be able to loop through all the report objects in the
database and show the recordsource for each and every report, even if the
report is not actively open. If I know in advance of this analysis that I
all of my reports have queries that start with "qry" I can use the code
below. I wonder if there is a way to do this code if the queries could have
several naming conventions (or no convention at all).
Here is my code for...
|
by: Melissa Kay Beeline |
last post by:
OK, here's the sitch : we have an access control system at work that
registers ever entry/exit of every employee. I recently made some
queries in Access so the ppl in HR could make reports (who came in
late, how many ppl were undertimed, etc etc) Now they are not
satisfied (of course) and they want a list of ABSENT employees.
I have the following tables :
PERSONNEL
CARD
|
by: Rolan |
last post by:
I have tried many iterations of constructing an expanded string link
criteria for a list box selection, but have not been successful. The
List Box uses a Totals Select Query that has a CustID, Customer Name,
Invoice Date and Invoice Amount. There is no InvoiceID/number,
otherwise it would be easy to resolve.
Currently, I must use a parameter query to key in the invoice date in
order to preview/print an invoice from the Invoice Dialog...
|
by: Thierry Loiseau |
last post by:
Hello all,
and Happy end year 2005 !
Well, I would like to obtain a list of all JavaScript var statement,
With "for...in" perharps ?
That is bellow my recent test here, but the problem is to management
theses :-((( I must to declare and use all variable with this scheme :
|
by: Martin Widmer |
last post by:
Hi guys
I am looking for the best way to generate new reports with reporting
services for SQL server 2005. The reports will be generated programmatically
from a .Net VB application. So far I see the only way to do it is to feature
my objects (text blocks, pictures, tables drawn from excel and databases
etc.) with a "render to RDL"- function and thus create an RDL definition of
the report, then push that one to the server using the...
| |
by: mortb |
last post by:
Hi,
How do I write a GenerateHashcode function that will generate guaranteed
unique hashcodes for my classes?
cheers,
mortb
|
by: ward |
last post by:
Greetings.
Ok, I admit it, I bit off a bit more than I can chew.
I need to complete this "Generate Report" page for my employer and I'm
a little over my head. I could use some additional assistance. I say
additional because I've already had help which is greatly appreciated.
I do try to take the time and understand the provided script in hopes
on not having to trouble others on those. But here it goes...
|
by: herbiegrey |
last post by:
Hello
This is my first post on the forum so hello everyone.
I have a problem with access that I can't manage to view the current form record as a report ready to be printed.
I have a list of clients that when viewed in a form, i need to be able to generate a letter with their details already filled in.
I've tried various version of the same code to try to achieve this, but all it can do is pull out and fill in the report for the...
|
by: trose178 |
last post by:
Good day all, I am working on a multi-select list box for a standard
question checklist database and I am running into a syntax error in
the code that I cannot seem to correct. I will also note that I am
using Allen Browne's multi-select list box for a report as a guide. I
should also note that my access skills are not the best so I may need
some explaining on certain things.
First let me give some background on the database:
I have a...
|
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: 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: isladogs |
last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM).
In this session, we are pleased to welcome a new presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules.
He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms.
Adolph will...
|
by: conductexam |
last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one.
At the time of converting from word file to html my equations which are in the word document file was convert into image.
Globals.ThisAddIn.Application.ActiveDocument.Select();...
|
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
|
by: muto222 |
last post by:
How can i add a mobile payment intergratation into php mysql website.
| |
by: bsmnconsultancy |
last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...
| |