Results 1 to 3 of 3
  1. #1
    3 Star Lounger
    Join Date
    Dec 2001
    Location
    Royal Oak, Michigan, USA
    Posts
    255
    Thanks
    0
    Thanked 0 Times in 0 Posts

    CompactCode (v2000)

    I know you can't use code within a database to compact and repair itself. However, is there a way to control the 'Compact on Close Setting'? Based on the value on a form, could I set the 'Compact on Close' to Yes or No?
    Thanks!
    Dashiell

  2. #2
    3 Star Lounger
    Join Date
    Dec 2001
    Location
    Royal Oak, Michigan, USA
    Posts
    255
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Re: CompactCode (v2000)

    Hans,
    Thank you! Just what I needed. Have a great day.

  3. #3
    Plutonium Lounger
    Join Date
    Mar 2002
    Posts
    84,353
    Thanks
    0
    Thanked 29 Times in 29 Posts

    Re: CompactCode (v2000)

    Application.SetOption "Auto Compact", Me.chkCompactOnClose

    where chkCompactOnClose is a check box on the form. To retrieve the current setting, use Application.GetOption("Auto Compact")

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •