MS SQL Development
 
Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
User Name:
Password:
Remember me
Go Back   Dev Shed ForumsDatabasesMS SQL Development

Reply
Add This Thread To:
  Del.icio.us   Digg   Google   Spurl   Blink   Furl   Simpy   Y! MyWeb 
Thread Tools Search this Thread Rate Thread Display Modes
 
Unread Dev Shed Forums Sponsor:
Generate data entry and reporting .NET Web apps in minutes, straight from your database. Read our FREE whitepaper “Build Web 2.0 Applications Without Hand-Coding” Download now!
  #1  
Old May 13th, 2004, 11:43 AM
sn202 sn202 is offline
Contributing User
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Mar 2004
Posts: 145 sn202 User rank is Sergeant (500 - 2000 Reputation Level)sn202 User rank is Sergeant (500 - 2000 Reputation Level)sn202 User rank is Sergeant (500 - 2000 Reputation Level)sn202 User rank is Sergeant (500 - 2000 Reputation Level)sn202 User rank is Sergeant (500 - 2000 Reputation Level) 
Time spent in forums: 2 Days 4 h 25 m 46 sec
Reputation Power: 11
Question Time stamp query problem!

Hi all,

I'm creating a Lauderette system for a uni assignment using VB6 as the frount-end application and MS Access as a back-end database. Problem is i need a query which will display a list of all washes due for collection within 2 hours, so i've used the following:

Code:
SELECT *
FROM Wash
WHERE [Requested pick-up]<Now()+2;


Problem is it displays all records, even if the time of collection is greater than 2 hours. I'm gussing its something to do with the "+2" but am new to SQL so need some help!!!

cheers Si.

Reply With Quote
Reply

Viewing: Dev Shed ForumsDatabasesMS SQL Development > Time stamp query problem!


Thread Tools  Search this Thread 
Search this Thread:

Advanced Search
Display Modes  Rate This Thread 
Rate This Thread:


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

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
View Your Warnings | New Posts | Latest News | Latest Threads | Shoutbox
Forum Jump


Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
  
 





© 2003-2008 by Developer Shed. All rights reserved. DS Cluster 6 hosted by Hostway