ACC: Form Based on Query May Not Be Updatable (98666)



The information in this article applies to:

  • Microsoft Access 1.0
  • Microsoft Access 1.1
  • Microsoft Access 2.0
  • Microsoft Access for Windows 95 7.0
  • Microsoft Access 97

This article was previously published under Q98666
Novice: Requires knowledge of the user interface on single-user computers.

SYMPTOMS

You may not be able to edit a record on a form, even though the AllowEdits property of the form is set to Yes. When you try to update data on the form, you may receive the message, "This Recordset is not updatable."

NOTE: In version 1.x, this behavior occurs when you set the DefaultEditing property to AllowEdits, and the message you may receive is "Form is read only."

CAUSE

If the form is based on a query that is not updatable, you will not be able to modify data on the form.

MORE INFORMATION

Steps to Reproduce Behavior


  1. Create the following new query based on the Order Details table in the sample database Northwind.mdb (or NWIND.MDB in version 2.0 or earlier):
          Query: Orders
          -------------------
          Type:  Select Query
          Join:  None
          Field: Quantity
             Total: Group By
          Field: UnitPrice
             Total: Group By
    						

    NOTE: In versions 1.x and 2.0, there is a space in the Unit Price field name.
  2. Run the query, and then try to change the unit price in any record. Note that you receive one of the messages described in the "Symptoms" section.

REFERENCES

For more information about updatable queries, search the Help Index for "update queries," or ask the Microsoft Access 97 Office Assistant.

Modification Type:MajorLast Reviewed:5/9/2003
Keywords:kbprb kbusage KB98666