Adding custom property 
Author Message
 Adding custom property

Unless I manually click on the Custom Tab of database properties and add a
property, I am unable to use code to add a property.  

I get an error with the following line of code:
Set doc = db.Containers!Databases.Documents!UserDefined

It says that 'Item not found in collection'  If I then go to the Custom tab
and add a property and then delete it, I do not get this error.

The MsysObjects table gets a record booked to it by manually setting a
property, so I am thinking this is a bug (no surprise).

Any workarounds?



Mon, 20 Nov 2000 03:00:00 GMT  
 Adding custom property



Quote:
>Unless I manually click on the Custom Tab of database properties and add a
>property, I am unable to use code to add a property.  

>I get an error with the following line of code:
>Set doc = db.Containers!Databases.Documents!UserDefined

>It says that 'Item not found in collection'  If I then go to the Custom tab
>and add a property and then delete it, I do not get this error.

>The MsysObjects table gets a record booked to it by manually setting a
>property, so I am thinking this is a bug (no surprise).

>Any workarounds?

May not be a bug (but then again).  Some properties can only be set up
at design time  - and error when set at run-time.

eg try and set a data control's databasename and recordsource at run-
time only.

--
Antony Melvin



Fri, 24 Nov 2000 03:00:00 GMT  
 
 [ 2 post ] 

 Relevant Pages 

1. Problems adding custom property pages

2. how to add custom properties to folder?

3. Adding custom properties and assigning values.

4. Adding Custom Properties in VBA

5. How to Add custom properties to VB Controls?

6. Possible to add Custom Property pages to Service in SCM?

7. How to add custom property to standard Image control?

8. How to add custom property to standard Image control?

9. custom properties when adding a shape

10. VBA to add custom meta data properties

11. Windows forms designer automatically adds code that sets properties of custom controls

12. Adding a custom property to a form

 

 
Powered by phpBB® Forum Software