Results 1 to 2 of 2
  1. #1
    desmondok is offline Novice
    Windows 7 Access 2003
    Join Date
    Aug 2010
    Posts
    1

    Lightbulb Contact Histroy Queries

    Hi,

    I have a database output from web, which contains many customer data, the format is something like below

    Customer ID | Name | Company | ApproachDate
    ----------------------------------------------


    1234 | John | ABC Company | Jun-2009
    2345 | Mary | BCD Company | May-2009
    1234 | John | ABC Company | Apr-2009
    2345 | Mary | DFG Company | Apr-2009
    3456 | Peter| GHF Company | Mar-2010
    2345 | Mary | DFG Company | Apr-2010

    What I hope to do is to generate a summary report so that I can see the picture of a customer approach history, could anyone suggest if it is possible to achieve by Access ?

    e.g.

    Customer ID | Name | FirstCompany | FirstApproachDate | SecondCompany | ApproachDate | DateDifference | ThirdCompany | ApproachDate | DateDifference |
    1234 | John | ABC Company | Apr-2009 | ABC Company | Jun-2009 | 2 months | NA |NA |NA |
    2345 | Mary | DFG Company | Apr-2009 | BCD Company | May-2009 | 1 months | DFG Company |Apr-2010 |11 months|
    3456 | Peter | GHF Company | Mar-2010 | NA |NA |NA |NA |NA |NA


    Thanks!

  2. #2
    NTC is offline VIP
    Windows Vista Access 2007
    Join Date
    Nov 2009
    Posts
    2,392
    well it is simply performed using an Aggregate Query. This topic is covered in all Access text books. Look for the greek Epsilon E symbol when in query design.

    however your post includes a left-right layout which is non standard; and for database norms often not worth the effort. In particular your "NA" fields. You probably can be set up a crosstab query/report using your AggregateQuery as the source to go to this type left-right layout. But it is a hassle I generally steer people away from - - afterall it is only layout...the data is correctly & accurately consolidated in an Aggregate Query, spinning alot of wheels to make it go left-right rather than up-down is often not worth it.

    hope this helps.

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

Similar Threads

  1. Receiving error on contact database
    By tcd2004 in forum Access
    Replies: 6
    Last Post: 03-12-2010, 06:43 AM
  2. last contact
    By mitchy1111 in forum Queries
    Replies: 3
    Last Post: 10-10-2009, 04:53 PM
  3. email contact button
    By nwalke in forum Programming
    Replies: 3
    Last Post: 07-02-2009, 07:11 AM
  4. contact table issues
    By redknite in forum Database Design
    Replies: 5
    Last Post: 06-11-2009, 08:32 AM
  5. Access Contact Database
    By gpeterson82 in forum Access
    Replies: 0
    Last Post: 10-30-2008, 09:38 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