Page 3 of 4 FirstFirst 1234 LastLast
Results 31 to 45 of 47
  1. #31
    smil27 is offline Novice
    Windows 7 64bit Access 2010 32bit
    Join Date
    Apr 2013
    Posts
    24
    But if I change the Control Source on the Agent combo box to AgentID then it only allows numbers entered instead of the agents name.

  2. #32
    pbaldy's Avatar
    pbaldy is offline Who is John Galt?
    Windows XP Access 2007
    Join Date
    Feb 2010
    Location
    Nevada, USA
    Posts
    22,652
    AgentID is the field in the table. You want the combo to display the name but save the ID. The combo wizard will walk you through it.
    Paul (wino moderator)
    MS Access MVP 2007-2019
    www.BaldyWeb.com

  3. #33
    smil27 is offline Novice
    Windows 7 64bit Access 2010 32bit
    Join Date
    Apr 2013
    Posts
    24
    I've entered in 10 records and everything seems to be going into the right spots without duplicates.

    Moving on to the Reports
    - I have created a query that asks for the agents name and then Pending or Closed and then lists the Agent, and the Sum of their pending or closed gross commission. This works well.
    - I can create a report that lists all agents, individual commissions and grouped by pending or closed. Is there a way generate a report listing each in Agent, grouped by Pending & Closed, and then within pending and closed, have the gross commission totalled?

    Thanks

  4. #34
    pbaldy's Avatar
    pbaldy is offline Who is John Galt?
    Windows XP Access 2007
    Join Date
    Feb 2010
    Location
    Nevada, USA
    Posts
    22,652
    It sounds like you're already using a totals query. Getting pending and closed summed should be a matter of including that field with Group By in the totals row.
    Paul (wino moderator)
    MS Access MVP 2007-2019
    www.BaldyWeb.com

  5. #35
    smil27 is offline Novice
    Windows 7 64bit Access 2010 32bit
    Join Date
    Apr 2013
    Posts
    24
    So I selected Group By pending and closed and total type sum for the Commission column, but none of the selections allow for subtotal in each category of pending or closed. It just gives a grand total at the bottom or a subtotal for each line.
    Is there another way to choose the sum and grouping here?



    Click image for larger version. 

Name:	report.jpg 
Views:	5 
Size:	29.8 KB 
ID:	12676Click image for larger version. 

Name:	report2.jpg 
Views:	5 
Size:	20.4 KB 
ID:	12677

  6. #36
    pbaldy's Avatar
    pbaldy is offline Who is John Galt?
    Windows XP Access 2007
    Join Date
    Feb 2010
    Location
    Nevada, USA
    Posts
    22,652
    I meant in a query, since it sounds like the report is already based on a totals query.
    Paul (wino moderator)
    MS Access MVP 2007-2019
    www.BaldyWeb.com

  7. #37
    smil27 is offline Novice
    Windows 7 64bit Access 2010 32bit
    Join Date
    Apr 2013
    Posts
    24
    I have added a new query that does the proper sorts and has everything totalled by pending and closed for each agent. Before I was adding fields and then fiddling with the outcome afterwards. It seems to be giving me the outcome I was looking for.

    Thanks for your tremendous help, Paul

  8. #38
    pbaldy's Avatar
    pbaldy is offline Who is John Galt?
    Windows XP Access 2007
    Join Date
    Feb 2010
    Location
    Nevada, USA
    Posts
    22,652
    Happy to help!
    Paul (wino moderator)
    MS Access MVP 2007-2019
    www.BaldyWeb.com

  9. #39
    smil27 is offline Novice
    Windows 7 64bit Access 2010 32bit
    Join Date
    Apr 2013
    Posts
    24
    Hello,
    After entering a over a hundred entries, there are starting to be some duplicates and houses sell twice. The entry form will not let me to enter a duplicate record. Is there a way to change the PID field (the primary key on the Property table to allow duplicates without changing the relationship. It has a one to many with the PID field on the tblSales.
    Thanks

  10. #40
    pbaldy's Avatar
    pbaldy is offline Who is John Galt?
    Windows XP Access 2007
    Join Date
    Feb 2010
    Location
    Nevada, USA
    Posts
    22,652
    What are your relationships now? It sounds like the wrong field is the key. Can you post the current db?
    Paul (wino moderator)
    MS Access MVP 2007-2019
    www.BaldyWeb.com

  11. #41
    pbaldy's Avatar
    pbaldy is offline Who is John Galt?
    Windows XP Access 2007
    Join Date
    Feb 2010
    Location
    Nevada, USA
    Posts
    22,652
    How do I recreate the problem exactly?
    Paul (wino moderator)
    MS Access MVP 2007-2019
    www.BaldyWeb.com

  12. #42
    smil27 is offline Novice
    Windows 7 64bit Access 2010 32bit
    Join Date
    Apr 2013
    Posts
    24
    If you try to enter a property PID that has already been entered and its info, it will give an error when you go to the subform to enter agents that have listed and sold the property. The error says that you cannot enter a duplicate.

  13. #43
    smil27 is offline Novice
    Windows 7 64bit Access 2010 32bit
    Join Date
    Apr 2013
    Posts
    24
    The exact message I get is this -
    "The changes you requested to the table were not successful because they would create duplicate values in the index, primary key, or relationship. Change the data in the field or fields that contain duplicate data, remove the index or redefine the index to permit duplicate entries and try again."
    I have also sent you the db again. (sent the wrong link before)
    Thanks

  14. #44
    pbaldy's Avatar
    pbaldy is offline Who is John Galt?
    Windows XP Access 2007
    Join Date
    Feb 2010
    Location
    Nevada, USA
    Posts
    22,652
    You have the main form bound to a query that includes the property table. You get the error because it's trying to add the PID to that table again, rather than the sales table. I would have that form bound just to the sales table. You can use a combo for the property and use this to display the related info:

    BaldyWeb - Autofill
    Paul (wino moderator)
    MS Access MVP 2007-2019
    www.BaldyWeb.com

  15. #45
    smil27 is offline Novice
    Windows 7 64bit Access 2010 32bit
    Join Date
    Apr 2013
    Posts
    24
    This doesn't seem to be working for me. Shouldn't I just be able to add an AutoNumber field to tblProperty and relink the many-to-one relationship with the tblSales?

Page 3 of 4 FirstFirst 1234 LastLast
Please reply to this thread with any new information or opinions.

Similar Threads

  1. How to work out commission rates
    By matpaulin in forum Queries
    Replies: 1
    Last Post: 02-07-2013, 06:15 PM
  2. how to generate this simple report in report ms access
    By learning_graccess in forum Reports
    Replies: 1
    Last Post: 11-26-2011, 02:10 PM
  3. Creating a simple report?
    By berni3883 in forum Reports
    Replies: 1
    Last Post: 03-29-2011, 12:31 PM
  4. Simple Report by Month
    By leejqs in forum Reports
    Replies: 3
    Last Post: 07-15-2009, 09:24 AM
  5. Probably a simple report question
    By gmurrie in forum Reports
    Replies: 1
    Last Post: 12-28-2005, 09:19 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