Results 1 to 5 of 5
  1. #1
    Micky is offline Novice
    Windows XP Access 2010 32bit
    Join Date
    Apr 2012
    Posts
    22

    Does "Group By" disables adding a new record?

    Hey, I'm building a Toys Store for my Studying (industrial Engineering). Now, each customer entering the store, can buy more than one item, so I have built the tables accordingly, and a connecting table between items and sales, so that each customer in one buy (Serial Number), can buy a few products.
    Next step, I designed a query, with a Sum and "Group By" (the Serial Number 1,2,3 etc...), so that I will be able to see everything in one form, including sub form for the different items.
    The thing is, that no one told me (thought it seems somehow logical), that the user won't be able to add a new record (means: sell to customer). And now, after spending hours and days, I'm confused. Since I read in the web, that once I'm using "Group By", the form and queries will become automatically "read only" mode.
    Do you have any suggestions how do I overcome this problem?


    Any help would be very much appreciated. I'm sorry for my bad English, but I hope it's clear.

    Thanks!!

  2. #2
    pbaldy's Avatar
    pbaldy is offline Who is John Galt?
    Windows XP Access 2007
    Join Date
    Feb 2010
    Location
    Nevada, USA
    Posts
    22,521
    It is true that the Group By clause makes the query read only. I'm not clear on why you would need it as the source of the form. Typically the form would be based on an invoice table and the subform on a related invoice details table. Can you clarify your table structure and why you need the group by?
    Paul (wino moderator)
    MS Access MVP 2007-2019
    www.BaldyWeb.com

  3. #3
    orange's Avatar
    orange is offline Moderator
    Windows XP Access 2003
    Join Date
    Sep 2009
    Location
    Ottawa, Ontario, Canada; West Palm Beach FL
    Posts
    16,726
    I suggest you review database design articles, especially those relating to Normalization and entity relationship diagramming. The concepts involved will help you with your project.

    Getting the table structures correct is key. Identifying some of the facts/business rules that the database must support is also a good way to ensure good table and relationship design.

    Things like this should be considered as you start your project:
    The store has many Customers.
    A Purchase can involve 1 or more items.
    A Sale may involve 1 or more items. (You may want to deal with Sales or Purchase and not both)
    A Customer can make 1 or more purchases.
    (Perhaps a Customer doesn't have to make a Purchase? so 0 or more Purchases is allowed?)

    You may wish to make some sample data (even on paper) and make sure your tables and relationships support the facts and the test data.

    Are you familiar with Normalization? How about Entity relationship diagramming?
    Here is a list of free video tutorials that may help.

    http://www.youtube.com/watch?v=IiVq8M5DBkk Logical data modeling

    http://www.youtube.com/watch?v=BGMwuOtRfqU Candidate key

    http://www.youtube.com/watch?v=ZiB-BKCzS_I Normalization

    http://www.youtube.com/watch?v=pJ47btpjAhA Normalization example

    http://www.youtube.com/watch?v=q3Wg2fZENK0 1st Normal form

    http://www.youtube.com/watch?v=vji0pfliHZI 2nd Normal form

    http://www.youtube.com/watch?v=HH-QR7t-kMo 3rd Normal form

    http://www.youtube.com/watch?v=q1GaaGHHAqM E_R Diagramming

    http://www.youtube.com/watch?v=lXAGQ8vmhCY ERD Part 2

    The first few topics at this site are well worth the read.

    http://www.rogersaccesslibrary.com/forum/topic238.html

    Good luck with your project and your studies.

  4. #4
    Micky is offline Novice
    Windows XP Access 2010 32bit
    Join Date
    Apr 2012
    Posts
    22
    Thanks, I will use these tutorials. Anyway, I'm herewith attaching the relationships diagram between the tables.
    I studied Normalization and the ERD I guess that it wasn't enough. But anyway, I still have to think how to do this and I'm running out of time with this project.

    Quote Originally Posted by orange View Post
    I suggest you review database design articles, especially those relating to Normalization and entity relationship diagramming. The concepts involved will help you with your project.

    Getting the table structures correct is key. Identifying some of the facts/business rules that the database must support is also a good way to ensure good table and relationship design.

    Things like this should be considered as you start your project:
    The store has many Customers.
    A Purchase can involve 1 or more items.
    A Sale may involve 1 or more items. (You may want to deal with Sales or Purchase and not both)
    A Customer can make 1 or more purchases.
    (Perhaps a Customer doesn't have to make a Purchase? so 0 or more Purchases is allowed?)

    You may wish to make some sample data (even on paper) and make sure your tables and relationships support the facts and the test data.

    Are you familiar with Normalization? How about Entity relationship diagramming?
    Here is a list of free video tutorials that may help.




    http://www.youtube.com/watch?v=IiVq8M5DBkk Logical data modeling

    http://www.youtube.com/watch?v=BGMwuOtRfqU Candidate key

    http://www.youtube.com/watch?v=ZiB-BKCzS_I Normalization

    http://www.youtube.com/watch?v=pJ47btpjAhA Normalization example

    http://www.youtube.com/watch?v=q3Wg2fZENK0 1st Normal form

    http://www.youtube.com/watch?v=vji0pfliHZI 2nd Normal form

    http://www.youtube.com/watch?v=HH-QR7t-kMo 3rd Normal form

    http://www.youtube.com/watch?v=q1GaaGHHAqM E_R Diagramming

    http://www.youtube.com/watch?v=lXAGQ8vmhCY ERD Part 2

    The first few topics at this site are well worth the read.

    http://www.rogersaccesslibrary.com/forum/topic238.html

    Good luck with your project and your studies.
    Attached Files Attached Files

  5. #5
    Micky is offline Novice
    Windows XP Access 2010 32bit
    Join Date
    Apr 2012
    Posts
    22
    I just wanted o update that I have solved the problem. I learned how to do this through the Youtube, using the form wizard.
    Thanks both for your help!!

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

Similar Threads

  1. Replies: 11
    Last Post: 03-29-2012, 02:32 PM
  2. Adding "ALL" option to combo box
    By nic311 in forum Forms
    Replies: 6
    Last Post: 11-16-2011, 01:55 PM
  3. Replies: 16
    Last Post: 07-22-2011, 09:23 AM
  4. "Group By" causes "ODBC--Call Failed" error
    By kaledev in forum Queries
    Replies: 1
    Last Post: 03-09-2011, 02:43 PM
  5. Replies: 4
    Last Post: 12-03-2010, 04:05 PM

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