Results 1 to 8 of 8
  1. #1
    tweety is offline Competent Performer
    Windows 7 32bit Access 2007
    Join Date
    Nov 2012
    Posts
    126

    form based on query - cant edit records

    i have a form that has its data based on a query, all it shows is customer who have not paid using a check box. the idea was to to be able to check the box so the customer order can be paid, but the check box cant be ticked!!!

    this is the cause (having the totals on will make the query read only) http://allenbrowne.com/ser-61.html

    But what is the fix????


    thanks

  2. #2
    JoeM is offline VIP
    Windows XP Access 2007
    Join Date
    Jun 2012
    Posts
    3,904
    You cannot edit Aggreagte (Totals) query. Think about it. Aggregate queries usually combine/collapse multiple records down to a single record. So if you try to edit a row from an Aggregate Query, how would it know which record in your underlying table to edit with that row in your query could represent multiple records?

    In order to figure out a way to do this, I think we are going to have to know more about your data structure.
    What is your table structure?
    Why are you aggregating records?

  3. #3
    scoobz1234 is offline Advanced Beginner
    Windows 7 64bit Access 2010 64bit
    Join Date
    Mar 2012
    Posts
    41
    I had a similar issue with my Form that was based of a query, if you go into the properties of the form and set the RecordSet Type to "Dynaset (inconsistent updates)" and then do the same for your query, this should fix your issue.

  4. #4
    tweety is offline Competent Performer
    Windows 7 32bit Access 2007
    Join Date
    Nov 2012
    Posts
    126
    i have attached a copy of the the table structure,
    Click image for larger version. 

Name:	tables.png 
Views:	4 
Size:	32.4 KB 
ID:	11895
    and a copy of the query,
    Click image for larger version. 

Name:	Untitled.png 
Views:	5 
Size:	19.1 KB 
ID:	11896

    the reason the records are grouped is a purchase order is made up of many items, hence they are grouped. if i dont the form will will have 100's of boxes to tick when a customer hasnt paid for an order

  5. #5
    tweety is offline Competent Performer
    Windows 7 32bit Access 2007
    Join Date
    Nov 2012
    Posts
    126
    Thanks i just tried that, changing the form and query to Dynaset (inconsistent updates) but still no luck :-(

  6. #6
    scoobz1234 is offline Advanced Beginner
    Windows XP Access 2007
    Join Date
    Mar 2012
    Posts
    41
    any way you can upload your db?

  7. #7
    JoeM is offline VIP
    Windows XP Access 2007
    Join Date
    Jun 2012
    Posts
    3,904
    I had a similar issue with my Form that was based of a query, if you go into the properties of the form and set the RecordSet Type to "Dynaset (inconsistent updates)" and then do the same for your query, this should fix your issue.
    Was your query an Aggregate Query?
    I am betting it may not have been. I don't think that making the change your mentioned will suddenly make a non-editable query like an Aggregate Query editable.

    tweety,
    Instead of doing it with Aggregate Queries to combine all the records in a single purchase order, have you tried using SubForms? Your main Form would be the high-level Order information, and the SubForm would contain the individual records which make it up.

  8. #8
    tweety is offline Competent Performer
    Windows 7 32bit Access 2007
    Join Date
    Nov 2012
    Posts
    126
    Db attached
    Attached Files Attached Files

Please reply to this thread with any new information or opinions.

Similar Threads

  1. Replies: 1
    Last Post: 01-03-2013, 11:19 PM
  2. Replies: 10
    Last Post: 09-13-2012, 07:22 PM
  3. Replies: 4
    Last Post: 08-02-2012, 10:59 AM
  4. Replies: 3
    Last Post: 08-23-2011, 04:35 PM
  5. Form not letting me edit records
    By bbylls in forum Forms
    Replies: 3
    Last Post: 12-16-2009, 09:30 AM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
Other Forums: Microsoft Office Forums