Am creating a meeting room booking facility. Have divided the day up into 17 blocks, which users select from an &#060;option&#062; list and I used a select statement to find all the blocks booked on a particular day, and wrote those to an HTML table.<BR><BR>I now need to write to an html table all the blocks not booked. I tried this:<BR>do while not rsRooms.eof<BR>if rsRooms("TimeBlock") &#060;&#062;"0900-0930" then<BR> response.write "&#060;tr&#062;"<BR> response.write "&#060;td&#062;"<BR> response.write "0900-0930"<BR><BR>If there is only one block booked on a particular day all is well, but if there are, say, two bookings, the record set is checked twice and all the available blocks are repeated twice. <BR><BR>Could I write each block found to a different variable, and use an if statement to check for blocks used? If so, how do I write each block found to a different variable?<BR><BR>Is there a better way of doing this?<BR>