Results 1 to 3 of 3
  1. #1
    Reynardine is offline Novice
    Windows 7 64bit Access 2010 64bit
    Join Date
    Jul 2012
    Posts
    9

    Issue with time query

    Hi Guys,

    I was wondering if anyone here would be able to help me with a problem I am having.

    I have a query which is based on a table which has 4 feilds in which if a customer has been called within a certain date range it presents it.

    So the 4 feilds are:

    Call 1 Date
    Call 2 Date
    Call 3 Date
    Call 4 Date

    I want it to present these records if call 1 Date is More than 2 days ago. If call 2 Date is more than 2 days ago, and the same with 3 or 4. However I also want it to only look at the call date on the most recent feild...if that makes sense? Otherwise if they have already have a call 1 date, its always going to be 2 days after that for any future calls. However, I want it to call them after 2 days since the last call.



    So it ends up being a system whereby The customer gets a call every 2 days until the issue is finally resolved (unless it has happened 4 times), in which we will close it.

    I hope I have managed to explain myself, and would appreciate any held or guidance you could provide me?

  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,849
    You should review Normalization.
    It appears that you should be using 2 tables (I may not fully understand your issue however)

    Customer---->PhoneCalls

    Customer would have fields such as

    CustomerId (PK)
    CustomerFirstname
    CustomerLastname
    CustomerPhoneNo
    ... other Customer specific fields

    PhoneCalls

    PhonecallId (PK)
    CustomerPhoneNo (FK to Customers)
    CallDate
    ...other fields related to a specific customer call

    This structure will facilitate queries to "get" the info you need.

  3. #3
    Reynardine is offline Novice
    Windows 7 64bit Access 2010 64bit
    Join Date
    Jul 2012
    Posts
    9
    Thank you.

    So even if I did that and had a table with just the call time and outcomes with the customer ID being the PK, how would I query it to meet the criteria I provided?

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

Similar Threads

  1. ACCESS DATE/TIME Issue! Thanks!
    By keledidi in forum Access
    Replies: 6
    Last Post: 08-07-2012, 09:55 PM
  2. Date/Time Issue
    By bdhFS in forum Access
    Replies: 2
    Last Post: 08-02-2012, 04:22 PM
  3. Date/Time Search Midnight Issue
    By Coffee in forum Queries
    Replies: 5
    Last Post: 07-26-2011, 01:54 AM
  4. Replies: 2
    Last Post: 05-27-2011, 05:55 AM
  5. access time display issue at liknked table
    By newaccess in forum Access
    Replies: 0
    Last Post: 05-14-2010, 09:24 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