Page 2 of 4 FirstFirst 1234 LastLast
Results 16 to 30 of 47
  1. #16
    pbaldy's Avatar
    pbaldy is offline Who is John Galt?
    Windows XP Access 2007
    Join Date
    Feb 2010
    Location
    Nevada, USA
    Posts
    22,521
    Typically the subform would be in continuous or datasheet view. You would select Agent and Roll and fill in the commission. As soon as you start filling in one, you'll get a new record below. That enables you to have 1 agent or 100.
    Paul (wino moderator)
    MS Access MVP 2007-2019
    www.BaldyWeb.com

  2. #17
    smil27 is offline Novice
    Windows 7 64bit Access 2010 32bit
    Join Date
    Apr 2013
    Posts
    24
    Hello, When adding records, instead of adding the record to each agent in the agents table, it is adding a new record for each entry in the agents table. So Agent x is entered 5 or 6 times with one role and one commission attached to it, instead of Agent x there once with 5 or 6 entries of roles and commissions below it.

    What does it seem like I did wrong for this to happen?
    Thanks

  3. #18
    pbaldy's Avatar
    pbaldy is offline Who is John Galt?
    Windows XP Access 2007
    Join Date
    Feb 2010
    Location
    Nevada, USA
    Posts
    22,521
    Hard to say without seeing it. Can you post the db here?
    Paul (wino moderator)
    MS Access MVP 2007-2019
    www.BaldyWeb.com

  4. #19
    pbaldy's Avatar
    pbaldy is offline Who is John Galt?
    Windows XP Access 2007
    Join Date
    Feb 2010
    Location
    Nevada, USA
    Posts
    22,521
    I'm not clear on the problem. Looking in tblCommissions, there appear to be 2 agents per sale. Using the form, the appropriate agents & commissions seem to appear in the subform as I scroll records on the main form.
    Paul (wino moderator)
    MS Access MVP 2007-2019
    www.BaldyWeb.com

  5. #20
    smil27 is offline Novice
    Windows 7 64bit Access 2010 32bit
    Join Date
    Apr 2013
    Posts
    24
    I was trying to run reports so that I could see each agents commission totals on both Listing and Selling together, separated by Pending and Closed, upon trying to write the proper query, the data seemed to be entered into the wrong table.

  6. #21
    smil27 is offline Novice
    Windows 7 64bit Access 2010 32bit
    Join Date
    Apr 2013
    Posts
    24
    Sorry I see my problem, just need to modify the query, I was looking at something else.
    thanks

  7. #22
    pbaldy's Avatar
    pbaldy is offline Who is John Galt?
    Windows XP Access 2007
    Join Date
    Feb 2010
    Location
    Nevada, USA
    Posts
    22,521
    No problemo.
    Paul (wino moderator)
    MS Access MVP 2007-2019
    www.BaldyWeb.com

  8. #23
    smil27 is offline Novice
    Windows 7 64bit Access 2010 32bit
    Join Date
    Apr 2013
    Posts
    24
    Hello, when entering records, I pick an agent from the dropdown and it enters the agent I selected into the Agents table as a new entry and creates a new Agent ID. So when I look back at the records, the agents table now has 40 entries where it should only have the original 20 that I created. Did I not check something off there?

  9. #24
    smil27 is offline Novice
    Windows 7 64bit Access 2010 32bit
    Join Date
    Apr 2013
    Posts
    24
    I have created a couple queries and it seems to work fine though. Is the duplicate records in the agent table going to be a problem down the road, meaning another redo of the whole DB? I have a few hundred records to input and I want to make sure before I do all that work.
    Thanks

  10. #25
    pbaldy's Avatar
    pbaldy is offline Who is John Galt?
    Windows XP Access 2007
    Join Date
    Feb 2010
    Location
    Nevada, USA
    Posts
    22,521
    I think I see the problem. That form is bound to a query that includes both tblAgents and tblCommissions. It should just be tblCommissions (or a query that only includes tblCommissions). The combo would get its selections (Row Source) from tblAgents, but that's all.
    Paul (wino moderator)
    MS Access MVP 2007-2019
    www.BaldyWeb.com

  11. #26
    smil27 is offline Novice
    Windows 7 64bit Access 2010 32bit
    Join Date
    Apr 2013
    Posts
    24
    Ok, So take the Subform out and just insert 2 combos at the bottom and have the first combo for Agent Rowsource come for the agents table. Instead of the adding Agent from the agents table for the field?

  12. #27
    pbaldy's Avatar
    pbaldy is offline Who is John Galt?
    Windows XP Access 2007
    Join Date
    Feb 2010
    Location
    Nevada, USA
    Posts
    22,521
    No, just change the record source of the subform. The subform is bound to the commissions table. The agent combo on that subform gets its selections from the agents table, but is bound to the field in the commissions table. I think because of the joined tables, it's adding to both tables.
    Paul (wino moderator)
    MS Access MVP 2007-2019
    www.BaldyWeb.com

  13. #28
    smil27 is offline Novice
    Windows 7 64bit Access 2010 32bit
    Join Date
    Apr 2013
    Posts
    24
    So this is the Record Source from the Subform properties:

    SELECT [tblAgents].[Agent], [tblCommissions].[Role], [tblCommissions].[Commission], [tblCommissions].[SalesID] FROM tblAgents RIGHT JOIN tblCommissions ON [tblAgents].[AgentID] =[tblCommissions].[AgentID];

    I will take out the SELECT [tblAgents].[Agent]

    And then add a combo box add in the RowSource SELECT tblAgents.Agent FROM tblAgents;

  14. #29
    pbaldy's Avatar
    pbaldy is offline Who is John Galt?
    Windows XP Access 2007
    Join Date
    Feb 2010
    Location
    Nevada, USA
    Posts
    22,521
    The combo is already fine. The subform record source should either be

    tblCommissions

    or

    SELECT [tblCommissions].AgentID, [tblCommissions].[Role], [tblCommissions].[Commission], [tblCommissions].[SalesID] FROM tblCommissions
    Paul (wino moderator)
    MS Access MVP 2007-2019
    www.BaldyWeb.com

  15. #30
    pbaldy's Avatar
    pbaldy is offline Who is John Galt?
    Windows XP Access 2007
    Join Date
    Feb 2010
    Location
    Nevada, USA
    Posts
    22,521
    Sorry, the combo row source is fine, the control source would be AgentID.
    Paul (wino moderator)
    MS Access MVP 2007-2019
    www.BaldyWeb.com

Page 2 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