toaster045
UK_Student
- Local time
- Today, 22:43
- Joined
- Feb 11, 2008
- Messages
- 39
Hey guys I wonder if you can help me. I'm not sure if this is a form/macro or query issue so can post elsewhere if need though.
I'm currently an A level student and tweaking this prototype before making the real thing. Ok I’m building a bookings database for a hotel and trying to make the various queries to generate reports, etc.
but I’ve come up with the idea of making a "Check Availability" function so that when entering data into one of the form this can be hit which will run the macro which will run this.
Ok so I’ve got these fields:
Booking No - Number - Long Integer
Room no - Number - Long Integer
Customer No - Number - Long Integer
Date of Check in - Date/Time - Short Date
Date of Departure - Date/Time - Short Date
I've got more but I’m guessing these are the ones I need in the query. Anyway I need to make a query that will somehow - allow the user to input dates in the form - then check to see if those values already exist and return "No not available" or "Yes they are".
So yeah sorry for the long post I’m new to this whole advance query making and I’m useless at SQL so Design view tips would be handy. I'm using Access 2007 and greatly appreciate anyone’s thoughts. If you need anymore info pls ask.
Thanks
Toby
I'm currently an A level student and tweaking this prototype before making the real thing. Ok I’m building a bookings database for a hotel and trying to make the various queries to generate reports, etc.
but I’ve come up with the idea of making a "Check Availability" function so that when entering data into one of the form this can be hit which will run the macro which will run this.
Ok so I’ve got these fields:
Booking No - Number - Long Integer
Room no - Number - Long Integer
Customer No - Number - Long Integer
Date of Check in - Date/Time - Short Date
Date of Departure - Date/Time - Short Date
I've got more but I’m guessing these are the ones I need in the query. Anyway I need to make a query that will somehow - allow the user to input dates in the form - then check to see if those values already exist and return "No not available" or "Yes they are".
So yeah sorry for the long post I’m new to this whole advance query making and I’m useless at SQL so Design view tips would be handy. I'm using Access 2007 and greatly appreciate anyone’s thoughts. If you need anymore info pls ask.
Thanks
Toby