473,486 Members | 2,429 Online
Bytes | Software Development & Data Engineering Community
Create Post

Home Posts Topics Members FAQ

Referencing an object description in VB

Hello,

I'd like to reference the description of a form object, but I'm not sure
how to do it without cycling through all the form properties. When I look
in the "help" all I get is references to Err.description. The other
references I get are very vague. Any ideas? It's not help, but I've cut
and paste what I'm using to get at the property currently.

Thanks!

Set db = CurrentDb

With db.Containers!Forms

For Each docloop In .Documents

Debug.Print " " & docloop.name
For Each prpLoop In docloop.Properties
Debug.Print prpLoop.name & " - " & prpLoop.Value
Next prpLoop
Next docloop
End with
set db = nothing
Nov 13 '05 #1
1 1402
Refer to the document's
.Properties("Description")
e.g.:
dbEngine(0)(0).Containers("Forms").Documents("Form 1").Properties("Description")

If the document has no Description, you will get error 3270, so use error
handling.

--
Allen Browne - Microsoft MVP. Perth, Western Australia.
Tips for Access users - http://allenbrowne.com/tips.html
Reply to group, rather than allenbrowne at mvps dot org.

"Jozef" <me@you.com> wrote in message
news:_hHZe.556261$s54.26374@pd7tw2no...
Hello,

I'd like to reference the description of a form object, but I'm not sure
how to do it without cycling through all the form properties. When I look
in the "help" all I get is references to Err.description. The other
references I get are very vague. Any ideas? It's not help, but I've cut
and paste what I'm using to get at the property currently.

Thanks!

Set db = CurrentDb

With db.Containers!Forms

For Each docloop In .Documents

Debug.Print " " & docloop.name
For Each prpLoop In docloop.Properties
Debug.Print prpLoop.name & " - " & prpLoop.Value
Next prpLoop
Next docloop
End with
set db = nothing

Nov 13 '05 #2

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

2
8019
by: Simon | last post by:
Am using the following code. <script language="JavaScript1.2"> function setquantity(productindex,productquantity) { //create the reference object irefname_none = eval("document." +...
0
1063
by: Robert Jarrett | last post by:
Trying to resolve what seems a complicated issue (to me); will simplify description of issue w/ an analogy: A -- 5 tables - Memories, engrams, P (persons), L (locations), and T (things). All start...
7
1364
by: Arda Coskun | last post by:
Hi, I have a problem with references in C#. I have three classes; Game class, Player class and Bonus class. In Game class, I have created a Player object and named it myPlayer and set...
1
1282
by: KavvY | last post by:
Hi, Considering the code posted below can anyone explain to me why the following behaviour occurs? On page load the testFillDataGrid() function gets called and the variable sel is...
16
1980
by: PromisedOyster | last post by:
Hi I have a situation where I want to use circular referencing. I have cut down the example for demonstration purposes. Say we have one executable (main.exe) and two DLLS (A1.dll and A2.dll)....
2
1346
by: Allan Horwitz | last post by:
When I try to reference the lstproducts.selecteditem.value using autopostback from the lstproducts listbox I get an error? How can I fix my code to get the selected value from the lstproducts...
21
5064
by: cmd | last post by:
I have code in the OnExit event of a control on a subform. The code works properly in this instance. If, however, I put the same code in the OnExit event of a control on a Tab Control of a main...
11
3492
by: ozTinker | last post by:
I'm sure this shouldn't be too difficult, but I lack familiarity with the MS object model. Suppose I have a table "Purchase_Orders" and a form "TEMP" which I am using to look up a customer's...
2
6895
by: Andrus | last post by:
I need compile in-memory assembly which references to other in-memory assembly. Compiling second assembly fails with error Line: 0 - Metadata file 'eed7li9m, Version=0.0.0.0, Culture=neutral,...
0
7105
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
6967
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...
0
7132
Oralloy
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,...
0
7341
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
5439
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,...
1
4870
isladogs
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...
0
3076
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
3071
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
0
1381
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 ...

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.