Change Default Properties Through Code..?


DevX Home    Today's Headlines   Articles Archive   Tip Bank   Forums   

Results 1 to 2 of 2

Thread: Change Default Properties Through Code..?

  1. #1
    JamesE Guest

    Change Default Properties Through Code..?

    We have a runtime Access database that has a form with three or four
    subforms within it. The problem is this: the default values for
    AllowDeletions, AllowAdditions and AllowEdits, is set to False where the
    default value needs to be true. The database has it's own menus and all
    shortcut keys to enable full menus have been disabled. I tried writing some
    code in VB to change the properties, but then realised that this doesn't
    change the default values, and the values revert to FALSE upon closing the
    database. I could import all Tables, Forms, Modules etc. into a new database
    and then change the properties, but I lose the custom menus.

    Can somebody tell me how I might change these default properties?

    Cheers

    James E



  2. #2
    Paul Clement Guest

    Re: Change Default Properties Through Code..?

    On Mon, 27 Nov 2000 09:26:17 -0000, "JamesE" <JEdwards@theclancygroup.co.uk> wrote:

    We have a runtime Access database that has a form with three or four
    subforms within it. The problem is this: the default values for
    AllowDeletions, AllowAdditions and AllowEdits, is set to False where the
    default value needs to be true. The database has it's own menus and all
    shortcut keys to enable full menus have been disabled. I tried writing some
    code in VB to change the properties, but then realised that this doesn't
    change the default values, and the values revert to FALSE upon closing the
    database. I could import all Tables, Forms, Modules etc. into a new database
    and then change the properties, but I lose the custom menus.

    Can somebody tell me how I might change these default properties?

    Maybe I'm missing something here, but can't you modify these properties for each Form at design time
    (through the Property Sheet)?


    Paul ~~~ pclement@ameritech.net
    Microsoft MVP (Visual Basic)

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
HTML5 Development Center
 
 
FAQ
Latest Articles
Java
.NET
XML
Database
Enterprise
Questions? Contact us.
C++
Web Development
Wireless
Latest Tips
Open Source


   Development Centers

   -- Android Development Center
   -- Cloud Development Project Center
   -- HTML5 Development Center
   -- Windows Mobile Development Center