ACC: Unable to Paste Information into Property Sheet

Last reviewed: May 28, 1997
Article ID: Q94218
The information in this article applies to:
  • Microsoft Access versions 1.0, 1.1, 2.0, 7.0, 97

SYMPTOMS

Moderate: Requires basic macro, coding, and interoperability skills.

You are unable to paste information into a property sheet by using the Paste command on the Edit menu. Instead, you keep creating a new label control on your form or report.

CAUSE

You are using menu commands that do not apply to pop-up windows.

RESOLUTION

Use equivalent keyboard actions rather than selecting commands from the Microsoft Access menu bar. In this case, use CTRL+V or SHIFT+INSERT to paste information into a pop-up window.

STATUS

This behavior is by design.

MORE INFORMATION

Property sheets are actually pop-up windows. When you use menu commands, Microsoft Access returns focus (from the pop-up window) to the parent window. When you use equivalent keyboard actions, Microsoft Access retains focus on the current edit control (in this case the property sheet). Therefore, selecting the Paste command from the Edit menu will paste a new label in the "parent" form or Report window.

Steps to Reproduce Behavior

  1. In the sample database Northwind.mdb (or NWIND.MDB in versions 1.x and 2.0), open the "Customers And Suppliers By City" query (or "Customer List" query in versions 1.x and 2.0) in Design view.

  2. Select the entire SQL statement and click Copy on the Edit menu.

  3. Open the Orders form in Design view. If the property sheet is not open, click Properties on the View menu.

  4. Click the CustomerID combo box, and then select the entire RowSource property statement in the property sheet.

    NOTE: In versions 1.x and 2.0, there is a space in the Customer ID field.

  5. Try to paste the SQL code into the RowSource property by clicking Paste on the Edit menu. Note that Microsoft Access creates a new label on the form containing the SQL statement.

  6. Click Undo on the Edit menu. Close the Orders form and click No if asked to save changes.

NOTE: If you use CTRL+V or SHIFT+INSERT, Microsoft Access pastes the information from the Clipboard into the property sheet.

REFERENCES

For more information about this topic, search the Help Index on the phrase "pop-up forms, creating," or ask the Microsoft Access 97 Office Assistant.


Keywords : FmsHowto kbusage
Version : 1.0 1.1 2.0 7.0 97
Platform : WINDOWS
Hardware : X86
Issue type : kbprb
Resolution Type : kbworkaround


THE INFORMATION PROVIDED IN THE MICROSOFT KNOWLEDGE BASE IS PROVIDED "AS IS" WITHOUT WARRANTY OF ANY KIND. MICROSOFT DISCLAIMS ALL WARRANTIES, EITHER EXPRESS OR IMPLIED, INCLUDING THE WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE. IN NO EVENT SHALL MICROSOFT CORPORATION OR ITS SUPPLIERS BE LIABLE FOR ANY DAMAGES WHATSOEVER INCLUDING DIRECT, INDIRECT, INCIDENTAL, CONSEQUENTIAL, LOSS OF BUSINESS PROFITS OR SPECIAL DAMAGES, EVEN IF MICROSOFT CORPORATION OR ITS SUPPLIERS HAVE BEEN ADVISED OF THE POSSIBILITY OF SUCH DAMAGES. SOME STATES DO NOT ALLOW THE EXCLUSION OR LIMITATION OF LIABILITY FOR CONSEQUENTIAL OR INCIDENTAL DAMAGES SO THE FOREGOING LIMITATION MAY NOT APPLY.

Last reviewed: May 28, 1997
© 1998 Microsoft Corporation. All rights reserved. Terms of Use.