Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations SkipVought on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Query to display values not present in table...

Status
Not open for further replies.

blondends

Technical User
Apr 25, 2003
84
0
0
GB
Hi,

I need to produce a query that will only ouput the values that are not present in a table. The example is...

I have a dropdown box which will be used to select 1 of 3 times (06:00, 15:00 and 23:00) - but I want it to only show times in the dropdown which are not contained in a record for that specific day already.

I hope that makes sense, thanks in advance,

Chris
 
Do you mean something on the lines of:


Select From tblTimes Where Time Not In (Select Time From Appointments Where Date=Date())
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top