Hello and welcome to our community! Is this your first visit?
Register
Enjoy an ad free experience by logging in. Not a member yet? Register.
Results 1 to 2 of 2
  1. #1
    New Coder
    Join Date
    Apr 2005
    Posts
    13
    Thanks
    0
    Thanked 0 Times in 0 Posts

    working with date

    hi, i am developing a small hotel reservation portal for which i have to display total cost of stay for the given dates.

    eg: if my date of reservation is from 25/01/2008 to 05/02/2008 then i have to get the rates from 2 diff. records i need a clue to do this.

    i have an access database that looking like this:

    ------------------------------------
    fromDate toDate Rate
    ------------------------------------
    01/01/2008 30/01/2008 100
    01/02/2008 29/02/2008 200
    01/03/2008 30/03/2008 300

    thanks

  • #2
    Regular Coder
    Join Date
    Sep 2007
    Posts
    120
    Thanks
    0
    Thanked 3 Times in 3 Posts
    Hi,

    That table design isn't gonna work. Consider using a calendar table.

    HTH, Tom


  •  

    Posting Permissions

    • You may not post new threads
    • You may not post replies
    • You may not post attachments
    • You may not edit your posts
    •