Results 1 to 2 of 2
  1. #1
    P5C768 is offline Advanced Beginner
    Windows XP Access 2003
    Join Date
    Aug 2009
    Location
    Denver, CO
    Posts
    95

    Parameter based query on one table but 5 fields

    I need to create a query that allows the user to enter a start date and end date (will usually be the beginning and end of a month) that pulls in records for commissions to be paid in that time period.

    The monkey wrench is that the query will be based on an effective date AND a combobox dropdown that specifies whether the commission will be paid annually, semi-annually or monthly. So for example, if I wanted to run the report for this month, it would find any commissions with an effective date in June for annual, December for semi-annual and all commisions paid monthly.



    To top it off, this needs to happen on 5 different effective date/renewal frequency combinations (a total of 10 fields). I would evetually like to base a report on this query to pull in any commissions to be paid.

    I have attached a sample of my database for reference. Thanks in advance!

  2. #2
    kimmer is offline Competent Performer
    Windows 7 Access 2010 (version 14.0)
    Join Date
    May 2010
    Posts
    100
    Quote Originally Posted by P5C768 View Post

    To top it off, this needs to happen on 5 different effective date/renewal frequency combinations (a total of 10 fields). I would evetually like to base a report on this query to pull in any commissions to be paid.
    Yes, you do have 10 commission fields and many other repeating groups of fields in the single table file. I think you are going to have trouble after trouble unless you use related tables instead of a single flat table.

    First Normal Form: a table contains no repeating groups of fields.

    http://support.microsoft.com/kb/100139

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

Similar Threads

  1. Replies: 2
    Last Post: 03-14-2010, 07:27 PM
  2. Replies: 4
    Last Post: 02-08-2010, 11:17 AM
  3. Linked table Query based form
    By sesproul in forum Forms
    Replies: 1
    Last Post: 01-21-2010, 08:46 PM
  4. Update 2 fields based on where condition.
    By Confused in forum Access
    Replies: 2
    Last Post: 11-19-2009, 05:21 PM
  5. Replies: 2
    Last Post: 10-27-2009, 07:09 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