David Heath
05-21-2004, 02:16 AM
Hi everyone,
I have a database which holds information about Dogs stored in kennels.
There are four blocks, and each block has 20 pens (one dog per pen).
I've managed to sort out the relationships and all the tables and I've got some nice looking forms together as well, but I need some help now that its come down to the generating queries and reports thing. I've done a couple of queries already (working out the average number of nights dogs stay, working out walking and feeding schedules etc.) but some of the more difficult things I'm having trouble with, so I'm helping someone could lend a small helping hand.
The other three I'd like to achieve are:
Generating Invoices - Basically just shows the Booking table (which already has the totals on it) based on the Booking ID which the user enters when opening the report/query. (Can it do this for a report?) Also how do I get the database to ask the user a question and display results depending on that? In this case the Booking ID.
Displaying Unallocated Pens - Basically just a list of the unallocated pens at the present time. The results would be cool if they could display the block name, then the pen number.
Number Of Dogs Boarded (at present and over a user-defined amount of time!) - I have no idea how I'm going to do this one.
I appreciate this is a lot to ask, but some pointers would be very much appreciated. I have also posted a picture below of my relationships window so you can get an idea of how the database works, and the type of data you are dealing with. Changing any relationships at this stage is a definite no-go. : )
http://www.games-portal.co.uk/misc/relationship.png
Thanks very much for any input.
I have a database which holds information about Dogs stored in kennels.
There are four blocks, and each block has 20 pens (one dog per pen).
I've managed to sort out the relationships and all the tables and I've got some nice looking forms together as well, but I need some help now that its come down to the generating queries and reports thing. I've done a couple of queries already (working out the average number of nights dogs stay, working out walking and feeding schedules etc.) but some of the more difficult things I'm having trouble with, so I'm helping someone could lend a small helping hand.
The other three I'd like to achieve are:
Generating Invoices - Basically just shows the Booking table (which already has the totals on it) based on the Booking ID which the user enters when opening the report/query. (Can it do this for a report?) Also how do I get the database to ask the user a question and display results depending on that? In this case the Booking ID.
Displaying Unallocated Pens - Basically just a list of the unallocated pens at the present time. The results would be cool if they could display the block name, then the pen number.
Number Of Dogs Boarded (at present and over a user-defined amount of time!) - I have no idea how I'm going to do this one.
I appreciate this is a lot to ask, but some pointers would be very much appreciated. I have also posted a picture below of my relationships window so you can get an idea of how the database works, and the type of data you are dealing with. Changing any relationships at this stage is a definite no-go. : )
http://www.games-portal.co.uk/misc/relationship.png
Thanks very much for any input.