Microsoft Knowledge Base Email Alertz

(199028) - You cannot use the acOLEDelete argument of the Action method to clear an unbound object frame.

Search KbAlertz

Advanced Search

Receive Microsoft Knowledge Base articles by E-Mail?

Every night we scan the Microsoft Knowledge Base. If technologies you're interested in are updated, we'll send you an e-mail. You only get one e-mail a day, and only when new articles are added.

Click here to create a
FREE account
Already have an account?
[Click here to Login]











Microsoft Knowledge Base Article

This article contents is Microsoft Copyrighted material.
©2005-©2007 Microsoft Corporation. All rights reserved. Terms of Use | Trademarks

Article ID: 199028 - Last Review: July 15, 2004 - Revision: 1.1

ACC2000: Cannot Use acOLEDelete to Clear Object Frame

This article was previously published under Q199028
Advanced: Requires expert coding, interoperability, and multiuser skills.

On This Page

SYMPTOMS

You cannot use the acOLEDelete argument of the Action method to clear an unbound object frame.

RESOLUTION

To work around this problem, set the unbound object frame's Visible property to False to hide it from the screen. To do so, follow these steps:
  1. Open the sample database Northwind.mdb.
  2. In the Database window, click Forms under Objects, and then click New.
  3. Create a new form not based on any table or query, and save the form as form1.
  4. Add an unbound object frame to the form. In the Insert Object dialog box, click Create from File, and then click Browse.
  5. Browse to the Windows folder, and double-click Setup.bmp.
  6. Click OK.
  7. Right-click the unbound object frame, and click Properties on the menu that appears.
  8. Set the following properties of the unbound object frame:
    Name: Ole1
    Enabled: Yes
    Locked: No
  9. Add a command button to the form. Right-click the button and change the Name property to Btn1.
  10. Set the OnClick property of the command button to the following event procedure:
    Private Sub btn1_Click()
        Me!OLE1.Visible = FALSE
      End Sub
    					
  11. Open form1 in Form view and click the command button. Note that the unbound object frame disappears from the screen.

STATUS

Microsoft has confirmed that this is a problem in the Microsoft products that are listed at the beginning of this article.

MORE INFORMATION

Steps to Reproduce Behavior

  1. Repeat steps 1 through 8 of the "Resolution" section.
  2. Set the OnClick property of the command button to the following event procedure:
    Private Sub btn1_Click()
        Me!OLE1.Action = acOLEDelete
    End Sub
    					
  3. Open form1 in Form view, and click the command button. Note that the unbound object frame is not cleared.

APPLIES TO
  • Microsoft Access 2000 Standard Edition
Keywords: 
kbbug kbpending KB199028
       

Community Feedback System

Very often, it takes hours to solve a problem. Very often, you've looked high and low, and have tried a lot of solutions. When you finally found it, chances are, it was because someone else helped you. Here's your chance to give back. Use our community feedback tool to let others know what worked for you and what didn't.

Please also understand that the community feedback system is not warranted to be correct, it's simply a system that we've built to let people try and help each other. If something in a feedback response doesn't make sense to you, or you're not comfortable making changes that the feedback talks about (like registry edits), please consult a professional.

Thank you for using kbAlertz.com Feedback System.

-- Scott Cate