PC Review


Reply
Thread Tools Rate Thread

Built in properties not found

 
 
DZ
Guest
Posts: n/a
 
      3rd Nov 2008
Hi

I added several Builtin properties to the DB properties collection and have
been using them and setting their values programatically for a month. Now
suddenly when I try to set a value i get an error message
"Property not found" so added it again and the properties not message
happens again later that same day.

The properties were startup properties:
• AllowShortcutMenus
• AllowBuiltinToolbars
• StartUpForm

I created a work around which was to add them every time programmatically
before i set their values programmatically with a on Error Resume Next in
case they are already there. This solves the problem.

I was just wondering why they would become unadded when for a month they
stayed added with no problem.

....if you have any ideas on a better way to deal with this problem

Thanks for any insight




 
Reply With Quote
 
 
 
 
Allen Browne
Guest
Posts: n/a
 
      4th Nov 2008
If a property has not been used, there's a good chance it has not been
created, so you will get error 3270 if you try to use it.

This is true of all manner of properties, such as the Format of a Field in a
TableDef.

It's worth creating a little function to use for assigning these properties.
The function sets the property if it exists, or creates and sets it if
needed. The SetPropertyDAO() function here does that:
http://allenbrowne.com/AppPrintMgtCo...SetPropertyDAO

--
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.

"DZ" <(E-Mail Removed)> wrote in message
news:4CF19504-C443-455A-AB5C-(E-Mail Removed)...
>
> I added several Builtin properties to the DB properties collection and
> have
> been using them and setting their values programatically for a month. Now
> suddenly when I try to set a value i get an error message
> "Property not found" so added it again and the properties not message
> happens again later that same day.
>
> The properties were startup properties:
> • AllowShortcutMenus
> • AllowBuiltinToolbars
> • StartUpForm
>
> I created a work around which was to add them every time programmatically
> before i set their values programmatically with a on Error Resume Next in
> case they are already there. This solves the problem.
>
> I was just wondering why they would become unadded when for a month they
> stayed added with no problem.


 
Reply With Quote
 
Guest
Posts: n/a
 
      4th Nov 2008

There is no reason why data should go missing from your database,
so perhaps you have database corruption...but 9.99 times out of 10
it is user error. I can't think of any simple user errors, so

database corruption?
restored from backup?
imported to new database?
used the menu to remove the values?

(david)


"DZ" <(E-Mail Removed)> wrote in message
news:4CF19504-C443-455A-AB5C-(E-Mail Removed)...
> Hi
>
> I added several Builtin properties to the DB properties collection and

have
> been using them and setting their values programatically for a month. Now
> suddenly when I try to set a value i get an error message
> "Property not found" so added it again and the properties not message
> happens again later that same day.
>
> The properties were startup properties:
> . AllowShortcutMenus
> . AllowBuiltinToolbars
> . StartUpForm
>
> I created a work around which was to add them every time programmatically
> before i set their values programmatically with a on Error Resume Next in
> case they are already there. This solves the problem.
>
> I was just wondering why they would become unadded when for a month they
> stayed added with no problem.
>
> ...if you have any ideas on a better way to deal with this problem
>
> Thanks for any insight
>
>
>
>



 
Reply With Quote
 
 
 
Reply

Thread Tools
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Built-in, Custom and user-defined properties DZ Microsoft Access VBA Modules 0 16th Jan 2008 01:05 PM
Why Does Windows Mis-Identify My Custom Built Computer in MyComputer Properties ? DarkStar Windows XP Help 5 28th Jan 2007 06:34 AM
Modifying built in document properties using an excel macro Rakshit Microsoft Excel Programming 3 3rd Nov 2006 06:43 AM
How to add built-in doc properties using an AddIn. Antoine Venrooij Microsoft Powerpoint 4 21st May 2006 11:01 AM
ASPNET built-in account not found in domain controller PH Microsoft Dot NET 2 28th Oct 2004 12:12 PM


Features
 

Advertising
 

Newsgroups
 


All times are GMT +1. The time now is 08:55 AM.