Results 1 to 3 of 3
  1. #1
    Marin is offline Novice
    Windows 7 64bit Access 2010 32bit
    Join Date
    Feb 2013
    Posts
    4

    Need a query that gives a correct selling price

    Hello everyone,



    I have 4 tbls looking like this:

    Employee .... Price.....Sale...... Amount

    eID ........... pID ......sID........ aID
    eName .......eID...... sDate .....sID
    ................pPrice .................eID
    ................pDate .................aQuantity



    What I need is query that gives a correct selling price (pPrice) depending on selling date (sDate), so I need to compare pDate and sDate to get right pPrice.

    Hope you can help me,
    Thx

  2. #2
    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,870
    You haven't told us anything about you tables and relationships, so a reader can only guess what you may have.

    see POST #8 at
    https://www.accessforums.net/access/...ble-31461.html

  3. #3
    Marin is offline Novice
    Windows 7 64bit Access 2010 32bit
    Join Date
    Feb 2013
    Posts
    4
    Click image for larger version. 

Name:	P1.jpg 
Views:	3 
Size:	27.1 KB 
ID:	11295
    Sry, Let's try like this:
    You can see Tables with relationships in the attachment 1 And SELECT query in the table below.
    Click image for larger version. 

Name:	P2.jpg 
Views:	3 
Size:	45.2 KB 
ID:	11296

    On 5th January (sDate), John worked 10h (aQuantity) with the price of 15$/h (pPrice) formed on 1st.Jan.2013.
    And again, on the second row, on the same date (5th Jan) we can see John worked for the price of 17$/hr formed on 15. Feb, far after his day work.
    What i want is to exclude records like this.

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

Similar Threads

  1. Replies: 2
    Last Post: 01-17-2013, 01:25 AM
  2. Replies: 1
    Last Post: 12-06-2012, 08:16 PM
  3. Replies: 4
    Last Post: 03-05-2012, 10:20 AM
  4. Replies: 9
    Last Post: 06-26-2011, 09:14 PM
  5. Query to Develope Price Book
    By Mark L in forum Queries
    Replies: 1
    Last Post: 12-11-2010, 08:07 AM

Tags for this Thread

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