Wrox Programmer Forums

Need to download code?

View our list of code downloads.

Go Back   Wrox Programmer Forums > Microsoft Office > Access and Access VBA > Access
Password Reminder
| FAQ | Members List | Calendar | Search | Today's Posts | Mark Forums Read
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 tens of thousands of software programmers and website developers including Wrox book authors and readers. As a guest, you can read any forum posting. By joining today you can post your own programming questions, respond to other developers’ questions, and eliminate the ads that are displayed to guests. Registration is fast, simple and absolutely free .
DRM-free e-books 300x50
Thread Tools Search this Thread Display Modes
  #1 (permalink)  
Old January 18th, 2007, 03:51 AM
Registered User
Join Date: Jan 2007
Location: , , .
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?

Reply With Quote
  #2 (permalink)  
Old January 18th, 2007, 08:41 AM
Friend of Wrox
Points: 9,611, Level: 42
Points: 9,611, Level: 42 Points: 9,611, Level: 42 Points: 9,611, Level: 42
Activity: 0%
Activity: 0% Activity: 0% Activity: 0%
Join Date: Mar 2004
Location: Washington, DC, USA.
Posts: 3,069
Thanks: 0
Thanked 10 Times in 10 Posts

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.

Reply With Quote

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Trackbacks are Off
Pingbacks are On
Refbacks are Off

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

All times are GMT -4. The time now is 06:35 AM.

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