ACC: Data Not Copied to New Record If Field Is Not Enabled

Last reviewed: October 1, 1997
Article ID: Q174506
The information in this article applies to:
  • Microsoft Access versions 2.0, 7.0, 97

SYMPTOMS

Novice: Requires knowledge of the user interface on single-user computers.

If you copy a record on a form in which one or more of the fields are disabled or locked, the data in the disabled or locked fields is not copied into the new record.

RESOLUTION

If you want to copy the entire record, be sure that the Enabled property is set to Yes and the Locked property is set to No for all of the fields on the form.

MORE INFORMATION

Steps to Reproduce Behavior

  1. Start Microsoft Access and open the sample database Northwind.mdb (or NWIND.MDB if you are using version 2.0).

  2. In the Database window, click the Forms tab (or Form tab if you are using version 2.0). Select the Suppliers form and click Design.

  3. Using the right mouse button (right click), click the Country text box, and then click Properties on the shortcut menu.

  4. Click the Data tab, (or select Data Properties from the list at the top of the property sheet if you are using version 2.0.). Change the Enabled property of the Country text box to No.

  5. On the View menu, click Form View (or Form if you are using version 2.0). Using the record selectors at the bottom of the form, go to the record you want to copy and note the total number of records.

  6. Use the following sequence of menu commands to copy the record:

        a. On the Edit menu, click Select Record.
    

        b. On the Edit menu, click Copy.
    

        c. On the Edit menu, click Paste Append.
    

    Note that the new record has no data in the Country field. If the Country field in the new, copied record appears to contain a value, press F9 to refresh the screen and view the actual data.

REFERENCES

For more information about the Enabled and Locked properties, search the Help Index for "locking controls."


Additional query words: prb
Keywords : FmrCdbeh FmsHowto
Version : WINDOWS:2.0,7.0,97
Platform : WINDOWS
Hardware : x86
Issue type : kbprb
Solution Type : Info_Provided


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: October 1, 1997
© 1998 Microsoft Corporation. All rights reserved. Terms of Use.