• Summing within date parameters (Access 97)

    Home » Forums » AskWoody support » Productivity software by function » MS Access and database help » Summing within date parameters (Access 97)

    Author
    Topic
    #383539

    Hi, haven’t a scooby what to do with this one. I have a database which I have recently set up to calculate the package price for a holiday with flights leaving on one date and returning on another, dependant upon hotel prices for adults/children etc. This is done entirely on calculated form objects accessing data in combo boxes.

    The users like this, and the problem is they now want a report which will select the best combination of hotel price/flight price for a certain hotel/departure/arrival airport between selected dates, with a flexible duration of between 1-14 days. I have a query which shows the total hotel cost for the number of adult/children for each individual date between the date parameters (possible depart dates v. possible return dates matching the duration). I also have another query which takes the same date parameters and shows where there are corresponding out and return flights, and how much the total cost of flights would be.

    What I need to do is somehow sum the total hotel price between potential departure/return dates in the second query…… anybody done anything like this before??? nosleep

    Viewing 0 reply threads
    Author
    Replies
    • #654534

      It sounds like a GroupBy query using the query that displays the individual records as its data source would do the trick. Are you familiar with the Totals menu under View? It will let you GroupBy, Sum or Count and various other functions. If you need to display the data on a form, you could use the DSum function, assuming you are displaying all of the selected dates in a continuous form.

    Viewing 0 reply threads
    Reply To: Reply #654534 in Summing within date parameters (Access 97)

    You can use BBCodes to format your content.
    Your account can't use all available BBCodes, they will be stripped before saving.

    Your information:




    Cancel