Wrox Programmer Forums
|
Access Discussion of Microsoft Access database design and programming. See also the forums for Access ASP and Access VBA.
Welcome to the p2p.wrox.com Forums.

You are currently viewing the Access section of the Wrox Programmer to Programmer discussions. This is a community of software programmers and website developers including Wrox book authors and readers. New member registration was closed in 2019. New posts were shut off and the site was archived into this static format as of October 1, 2020. If you require technical support for a Wrox book please contact http://hub.wiley.com
 
Old January 18th, 2007, 03:51 AM
Registered User
 
Join Date: Jan 2007
Posts: 7
Thanks: 0
Thanked 0 Times in 0 Posts
Default double bookings

No ,
In my table i have the product id, the start_date and the end_date
as primary key.
So the problem is that if i rent a book from 10-10-2007 till 20-10-2007 That is a combination that can be fill only one time.
But the combination of the same book end the date between 10-10-2007 en 20-10-2007 can be storage.
So i have to save al the between data to my product, that way i can't rent a book twice in one period.
I have tride something like WHERE datum_begin ! BETWEEN datum_begin AND datum_end. That combination works fine, but it works for a query and not for the table.
Does some one knows a solution?



 
Old January 18th, 2007, 08:41 AM
Friend of Wrox
 
Join Date: Mar 2004
Posts: 3,069
Thanks: 0
Thanked 10 Times in 10 Posts
Default

When you say it works for the query and not for the table, how are you trying to implement this? It seems to me that you would have either a data entry form, or a check availability form that can use the query to check this condition.


mmcdonal





Similar Threads
Thread Thread Starter Forum Replies Last Post
double in binär walid C# 1 January 24th, 2007 03:23 PM
Avoiding Double bookings via 'reserved' status davidosullivan PHP Databases 0 March 30th, 2006 10:44 AM
Double Quotes langer123 Classic ASP Basics 2 March 16th, 2005 06:22 PM
double queue mafuka C++ Programming 1 April 6th, 2004 01:08 PM
Double-buffering katsarosj ASP.NET 1.0 and 1.1 Professional 2 March 2nd, 2004 08:31 PM





Powered by vBulletin®
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.
Copyright (c) 2020 John Wiley & Sons, Inc.