Results 1 to 4 of 4
  1. #1
    beginner is offline Novice
    Windows Vista Access 2010 32bit
    Join Date
    Mar 2012
    Posts
    1

    Queries by table data

    Hi all,



    I am new to the world of Access and I'm trying to work my way through it. I am stuck on, honestly, quite a number of things and hoping someone could help me out. All I have saved in the file is table data (about a hotel, dates, type of room, etc) and I am trying to create queries that determine average length of stay based on room type, average number of visitors per room type, base income per room, strongest customer base, etc. I am completely stuck on how to run a query for the first request (average length of stay based on room type.

    I am pretty familiar with excel and what I would have done was determine the # of days based on the arrival/departure date and then run an averageif function for each room type. I don't know what to do with access though. Any suggestions?????

  2. #2
    aytee111 is offline Competent At Times
    Windows 7 32bit Access 2010 32bit
    Join Date
    Nov 2011
    Location
    Nomad
    Posts
    3,936
    Everything depends on your table structure, so hope you have that right.

    Start at the beginning and write down what you need - do the analysis of the problem before diving in:
    1) room type, number of days for each visit (DateDiff)
    2) total number of visits per room type
    3) sum the number of days by room type
    4) get the average

    Once you know what you want to accomplish you can begin to create queries in their simplest form, then you can work your way down to the final result.

  3. #3
    unknown is offline Novice
    Windows XP Access 2007
    Join Date
    Sep 2014
    Posts
    1
    Hi,

    I am working on this same question for my assignment and I am so lost.

    my question is would I have to make 4 different type of queries or combined in one querie?


    please help!!!!

  4. #4
    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,848
    Here is a free data model that may help with tables and relationships. Some of the model may be outside the scope of your issue and not needed.

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

Similar Threads

  1. Replies: 7
    Last Post: 09-06-2011, 08:00 PM
  2. Queries not returning data
    By Verso in forum Queries
    Replies: 1
    Last Post: 08-11-2011, 01:46 AM
  3. Showing data from different queries
    By samefilip in forum Reports
    Replies: 7
    Last Post: 01-06-2011, 11:09 AM
  4. Test data for queries
    By nacho in forum Queries
    Replies: 6
    Last Post: 04-16-2010, 11:01 PM
  5. Graph totals queries with different data
    By maggioant in forum Queries
    Replies: 0
    Last Post: 10-01-2009, 12:12 PM

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