![]() | |
![]() |
| | Thread Tools | Display Modes |
#1
| |||
| |||
|
#2
| |||
| |||
|
|
This seems to be a very difficult sql statement to construct and any ideas or help is appreciated. I have a table in Access that has a checkin date, checkout date, room number, last name and first name, and yes/no checkbox for whether the guest is a patient. I need to make an HTML table that displays the number of guests checked in by floor per day and the number of patients per floor by day. The first two digits of the room number designate the floor number(i.e. 2617 means the 26th floor). The output needs to look like this<BR><table border = '1'> <tr><td colspan='3' align='center'>26th floor</td> <td colspan='2'>27th floor</td> <td colspan='2'>28th floor</td> </tr> <tr> <th>Day</th th>patients</th> <th>guests</th> <th>patients</th> <th>guests</th th>patients</th> <th>guests</th> </tr> <tr> <td>1</td> <td>25</td td>43</td td>21</td> <td>56</td> <td>19</td> <td>27</td></tr><tr> <td>2</td td>26</td td>21</td> <td>68</td> <td>26</td> <td>26</td> <td>19</td> </tr> </table I thought about a recordcount for each floor, but I am not sure how to display the day and then do it all in the same row for each floor. Thank you for help. |
#3
| |||
| |||
|
|
This seems to be a very difficult sql statement to construct and any ideas or help is appreciated. I have a table in Access that has a checkin date, checkout date, room number, last name and first name, and yes/no checkbox for whether the guest is a patient. I need to make an HTML table that displays the number of guests checked in by floor per day and the number of patients per floor by day. The first two digits of the room number designate the floor number(i.e. 2617 means the 26th floor). The output needs to look like this<BR><table border = '1'> <tr><td colspan='3' align='center'>26th floor</td> <td colspan='2'>27th floor</td> <td colspan='2'>28th floor</td> </tr> <tr> <th>Day</th th>patients</th> <th>guests</th> <th>patients</th> <th>guests</th th>patients</th> <th>guests</th> </tr> <tr> <td>1</td> <td>25</td td>43</td td>21</td> <td>56</td> <td>19</td> <td>27</td></tr><tr> <td>2</td td>26</td td>21</td> <td>68</td> <td>26</td> <td>26</td> <td>19</td> </tr> </table I thought about a recordcount for each floor, but I am not sure how to display the day and then do it all in the same row for each floor. Thank you for help. |
#4
| |||
| |||
|
#5
| |||
| |||
|
|
I might have made the table wrong. There is only one day per row, with each floor's guest count on that row. What did you have in mind for this? Thanks |
![]() |
| Thread Tools | |
| Display Modes | |
| |