Results 1 to 8 of 8
  1. #1
    Mikey- is offline Novice
    Windows XP Access 2003
    Join Date
    Sep 2010
    Posts
    3

    Query help

    It's been some time since I've used Access. I use to teach it a long time ago and boy has it waned. Having issues getting results. This is a purchasing transaction file that was imported from .xls. The import contains the date of the transaction, amount, names and addies, and store number.

    I'm having issues with some queries. Does anyone have any ideas on how to do the following:

    Individuals who visit multiple stores (store number) and purchases >=$3000 in one day.
    Individuals who visit multiple stores (store number) and purchases >=$3000 in one week.

    I have others but they are variations of this. I've attached the file for convenience.

    Thanks folks,
    Mike.

  2. #2
    NoellaG's Avatar
    NoellaG is offline VIP
    Windows 7 Access 2010 (version 14.0)
    Join Date
    Jun 2010
    Location
    Belgium
    Posts
    1,172
    Hi,

    I created to queries as examples in your database. take care that this only works if the combination of last + first name is unique. In fact in Access you would need to create a table with customers, one with the stores and then the table with the sales, all combined through 2 one-to-many relationships.

    hop this already helps.

    grNG

  3. #3
    weekend00 is offline I may not be right
    Windows XP Access 2003
    Join Date
    Aug 2010
    Posts
    1,295
    Sorry, I can not download .mdb file because of company policy.
    would you attach a .zip file?

  4. #4
    NoellaG's Avatar
    NoellaG is offline VIP
    Windows 7 Access 2010 (version 14.0)
    Join Date
    Jun 2010
    Location
    Belgium
    Posts
    1,172
    Hi,

    the attached file IS a zip file ???????????????????????

    grNG

  5. #5
    weekend00 is offline I may not be right
    Windows XP Access 2003
    Join Date
    Aug 2010
    Posts
    1,295
    I was looking at Mikey's post.

  6. #6
    Mikey- is offline Novice
    Windows XP Access 2003
    Join Date
    Sep 2010
    Posts
    3
    Quote Originally Posted by NoellaG View Post
    Hi,

    I created to queries as examples in your database. take care that this only works if the combination of last + first name is unique. In fact in Access you would need to create a table with customers, one with the stores and then the table with the sales, all combined through 2 one-to-many relationships.

    hop this already helps.

    grNG
    Thanks Noella.

    I'll look at this. Thanks. In the meantime I was thinking exactly what you said (creating multiple tables with relationships), however, this comes to me once a week as an Excel file and gets imported to a single access table. I'd have to breakout the one table into at least 3 tables. Each week would obviously be different and need the same treatment all over again.

    Not sure how to handle this.

  7. #7
    Mikey- is offline Novice
    Windows XP Access 2003
    Join Date
    Sep 2010
    Posts
    3
    Quote Originally Posted by NoellaG View Post
    Hi,

    I created to queries as examples in your database. take care that this only works if the combination of last + first name is unique. In fact in Access you would need to create a table with customers, one with the stores and then the table with the sales, all combined through 2 one-to-many relationships.

    hop this already helps.

    grNG

    Ok, here's the issue. In my haste to get a result I didn't explain fully.

    Let me expand on my issue.

    Your query works well. Now add the fact that I need to see the individual store numbers and then get a total amount for each individual over the their multiple store visit.

    Now it's getting complicated, huh.

  8. #8
    NoellaG's Avatar
    NoellaG is offline VIP
    Windows 7 Access 2010 (version 14.0)
    Join Date
    Jun 2010
    Location
    Belgium
    Posts
    1,172
    Hi,

    I included a second example, but remember you can also create reports with subtotals and totals.

    grNG

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

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